#812A97

Closest named color: Dark Magenta (#8B008B). oklch(46.4% 0.179 318.7), rgb(129, 42, 151).

Aa

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

About this color

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

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

Values

HEX#812A97
RGBrgb(129, 42, 151)
HSLhsl(288, 56%, 38%)
OKLCHoklch(46.4% 0.179 318.7)

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 #812A97 7.74:1 AAA Lc -90.8 Preferred for body text
Black text on #812A97 2.71:1 Fails Lc 18.0 Dividers and decoration only
#812A97 text on white 7.74:1 AAA Lc 86.0 Fine for body text
#812A97 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

    #C583D7

    oklch(70.7% 0.138 318.9)

  6. Step 500

    500

    #B560CD

    oklch(63.1% 0.178 318.4)

  7. Step 600

    600

    #A143B9

    oklch(55.7% 0.192 318.9)

  8. Step 700

    700 (this color)

    #812A97

    oklch(46.4% 0.179 318.7)

  9. Step 800

    800

    #702C81

    oklch(42.7% 0.148 319.1)

  10. Step 900

    900

    #5B2968

    oklch(37.8% 0.116 318.9)

  11. Step 950

    950

    #35193D

    oklch(27% 0.073 318.3)

Export this scale for Tailwind in the Tailwind colors tool

#812A97 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)#004D9A0.176
Deuteranopia (no green cones)#3055940.154
Tritanopia (no blue cones)#813F5E0.111
Achromatopsia (no color)#5353530.181

Harmonies

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

Complementary

The opposite hue (180°).

  • #812A97

    #812A97

    oklch(46.4% 0.179 318.7)

  • #256B00

    #256B00

    oklch(46.5% 0.146 138.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #812A97

    #812A97

    oklch(46.4% 0.179 318.7)

  • #5A3DB4

    #5A3DB4

    oklch(46.3% 0.179 288.6)

  • #9A1769

    #9A1769

    oklch(46.4% 0.179 348.7)

Open the analogous palette in the generator

Split complementary

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

  • #812A97

    #812A97

    oklch(46.4% 0.179 318.7)

  • #5E5D00

    #5E5D00

    oklch(46.4% 0.101 109)

  • #006950

    #006950

    oklch(46.3% 0.092 169.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #812A97

    #812A97

    oklch(46.4% 0.179 318.7)

  • #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.

  • #812A97

    #812A97

    oklch(46.4% 0.179 318.7)

  • #8E3E00

    #8E3E00

    oklch(46.3% 0.125 48.6)

  • #256B00

    #256B00

    oklch(46.5% 0.146 138.7)

  • #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 #812A97, closest first.

Similar named colors

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

Use #812A97 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.