#812A98

Closest named color: Dark Magenta (#8B008B). oklch(46.4% 0.18 318.3), rgb(129, 42, 152).

Aa

White text reads best on this color (7.72:1).

About this color

#812A98 is a medium-dark, vivid purple. In OKLCH its lightness is 46%, its chroma 0.180 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Magenta (#8B008B), ΔE 0.046 away. White text reads best on it, at 7.72:1.

Hue familyPurples
Lightnessmedium-dark (46%)
Chromavivid (0.180)
Temperaturein between
Nearest nameDark Magenta (#8B008B)
Black text2.71:1
White text7.72:1

Values

HEX#812A98
RGBrgb(129, 42, 152)
HSLhsl(287, 57%, 38%)
OKLCHoklch(46.4% 0.18 318.3)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #812A98 7.72:1 AAA Lc -90.7 Preferred for body text
Black text on #812A98 2.71:1 Fails Lc 18.1 Dividers and decoration only
#812A98 text on white 7.72:1 AAA Lc 85.9 Fine for body text
#812A98 text on black 2.71:1 Fails Lc -16.1 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.

  1. Step 50

    50

    #F9F3FB

    oklch(97.1% 0.012 317.7)

  2. Step 100

    100

    #F1E5F5

    oklch(93.6% 0.025 317.7)

  3. Step 200

    200

    #E7D0EE

    oklch(88.6% 0.047 318.3)

  4. Step 300

    300

    #D9AFE5

    oklch(80.9% 0.087 318.6)

  5. Step 400

    400

    #C583D8

    oklch(70.8% 0.139 318.5)

  6. Step 500

    500

    #B560CD

    oklch(63.1% 0.178 318.4)

  7. Step 600

    600

    #A042BA

    oklch(55.5% 0.194 318.2)

  8. Step 700

    700 (this color)

    #812A98

    oklch(46.4% 0.18 318.3)

  9. Step 800

    800

    #702C82

    oklch(42.8% 0.149 318.6)

  10. Step 900

    900

    #5A2968

    oklch(37.7% 0.115 318.2)

  11. Step 950

    950

    #35193D

    oklch(27% 0.073 318.3)

Export this scale for Tailwind in the Tailwind colors tool

#812A98 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#004D9B0.175
Deuteranopia (no green cones)#2F55950.154
Tritanopia (no blue cones)#81405E0.114
Achromatopsia (no color)#5353530.182

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #812A98

    #812A98

    oklch(46.4% 0.18 318.3)

  • #276B00

    #276B00

    oklch(46.6% 0.145 138.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #812A98

    #812A98

    oklch(46.4% 0.18 318.3)

  • #5A3DB5

    #5A3DB5

    oklch(46.4% 0.18 288.5)

  • #9B166A

    #9B166A

    oklch(46.5% 0.181 348.5)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #812A98

    #812A98

    oklch(46.4% 0.18 318.3)

  • #5F5D00

    #5F5D00

    oklch(46.5% 0.1 108.3)

  • #006A4F

    #006A4F

    oklch(46.6% 0.095 167.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #812A98

    #812A98

    oklch(46.4% 0.18 318.3)

  • #765100

    #765100

    oklch(46.3% 0.097 78.3)

  • #006669

    #006669

    oklch(46.3% 0.079 198.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #812A98

    #812A98

    oklch(46.4% 0.18 318.3)

  • #8F3E00

    #8F3E00

    oklch(46.5% 0.126 48.3)

  • #276B00

    #276B00

    oklch(46.6% 0.145 138.3)

  • #006281

    #006281

    oklch(46.4% 0.091 228.5)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #812A98, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #812A98 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.