#7F289B

Closest named color: Dark Magenta (#8B008B). oklch(46.2% 0.185 316.5), rgb(127, 40, 155).

Aa

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

About this color

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

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

Values

HEX#7F289B
RGBrgb(127, 40, 155)
HSLhsl(285, 59%, 38%)
OKLCHoklch(46.2% 0.185 316.5)

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 #7F289B 7.83:1 AAA Lc -91.0 Preferred for body text
Black text on #7F289B 2.67:1 Fails Lc 17.8 Dividers and decoration only
#7F289B text on white 7.83:1 AAA Lc 86.2 Fine for body text
#7F289B text on black 2.67:1 Fails Lc -15.8 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

    #F1E5F6

    oklch(93.6% 0.026 316.1)

  3. Step 200

    200

    #E7D0F0

    oklch(88.6% 0.05 316.5)

  4. Step 300

    300

    #D8AFE8

    oklch(80.9% 0.09 316.4)

  5. Step 400

    400

    #C483DC

    oklch(70.8% 0.143 316.5)

  6. Step 500

    500

    #B460D2

    oklch(63.2% 0.182 316.4)

  7. Step 600

    600

    #9F42BF

    oklch(55.7% 0.198 316.3)

  8. Step 700

    700 (this color)

    #7F289B

    oklch(46.2% 0.185 316.5)

  9. Step 800

    800

    #6F2B85

    oklch(42.7% 0.153 316.9)

  10. Step 900

    900

    #5A286B

    oklch(37.7% 0.12 316.7)

  11. Step 950

    950

    #35193F

    oklch(27.2% 0.075 316.5)

Export this scale for Tailwind in the Tailwind colors tool

#7F289B 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)#004D9E0.173
Deuteranopia (no green cones)#2854980.158
Tritanopia (no blue cones)#7D405F0.118
Achromatopsia (no color)#5252520.186

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F289B

    #7F289B

    oklch(46.2% 0.185 316.5)

  • #2E6900

    #2E6900

    oklch(46.3% 0.139 136.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F289B

    #7F289B

    oklch(46.2% 0.185 316.5)

  • #563CB8

    #563CB8

    oklch(46.1% 0.185 286.3)

  • #9A116D

    #9A116D

    oklch(46.2% 0.185 346.5)

Open the analogous palette in the generator

Split complementary

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

  • #7F289B

    #7F289B

    oklch(46.2% 0.185 316.5)

  • #605B00

    #605B00

    oklch(46.1% 0.098 105.9)

  • #00694D

    #00694D

    oklch(46.2% 0.095 166.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F289B

    #7F289B

    oklch(46.2% 0.185 316.5)

  • #775000

    #775000

    oklch(46.3% 0.097 76.5)

  • #006667

    #006667

    oklch(46.2% 0.079 196)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F289B

    #7F289B

    oklch(46.2% 0.185 316.5)

  • #903B00

    #903B00

    oklch(46.2% 0.129 46.2)

  • #2E6900

    #2E6900

    oklch(46.3% 0.139 136.6)

  • #00627E

    #00627E

    oklch(46.2% 0.088 225.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #7F289B 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.