#7E42A0

Closest named color: Light Eggplant (#894585). oklch(49.5% 0.153 311.5), rgb(126, 66, 160).

Aa

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

About this color

#7E42A0 is a medium-dark, vivid purple. In OKLCH its lightness is 50%, its chroma 0.153 and its hue 312°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Eggplant (#894585), ΔE 0.051 away. White text reads best on it, at 6.61:1.

Hue familyPurples
Lightnessmedium-dark (50%)
Chromavivid (0.153)
Temperaturein between
Nearest nameLight Eggplant (#894585)
Black text3.17:1
White text6.61:1

Values

HEX#7E42A0
RGBrgb(126, 66, 160)
HSLhsl(278, 42%, 44%)
OKLCHoklch(49.5% 0.153 311.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 #7E42A0 6.61:1 AA Lc -87.4 Fine for body text
Black text on #7E42A0 3.17:1 AA large text Lc 21.8 Dividers and decoration only
#7E42A0 text on white 6.61:1 AA Lc 82.3 Fine for body text
#7E42A0 text on black 3.17:1 AA large text Lc -19.6 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

    #F8F4FA

    oklch(97.2% 0.009 314.8)

  2. Step 100

    100

    #EFE6F5

    oklch(93.6% 0.022 312.2)

  3. Step 200

    200

    #E2D2EE

    oklch(88.5% 0.042 310.9)

  4. Step 300

    300

    #D0B3E4

    oklch(80.8% 0.075 311.3)

  5. Step 400

    400

    #B98AD6

    oklch(70.6% 0.119 311.9)

  6. Step 500

    500

    #A76BCB

    oklch(63% 0.151 311.6)

  7. Step 600

    600

    #9251B8

    oklch(55.6% 0.164 311.3)

  8. Step 700

    700 (this color)

    #7E42A0

    oklch(49.5% 0.153 311.5)

  9. Step 800

    800

    #653681

    oklch(42.7% 0.127 311.1)

  10. Step 900

    900

    #533067

    oklch(37.8% 0.098 311.9)

  11. Step 950

    950

    #301C3C

    oklch(26.8% 0.063 311.6)

Export this scale for Tailwind in the Tailwind colors tool

#7E42A0 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)#235AA30.134
Deuteranopia (no green cones)#3B5E9E0.118
Tritanopia (no blue cones)#7A536A0.106
Achromatopsia (no color)#5D5D5D0.154

Harmonies

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

Complementary

The opposite hue (180°).

  • #7E42A0

    #7E42A0

    oklch(49.5% 0.153 311.5)

  • #447100

    #447100

    oklch(49.6% 0.137 131.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7E42A0

    #7E42A0

    oklch(49.5% 0.153 311.5)

  • #5751B5

    #5751B5

    oklch(49.5% 0.153 281.9)

  • #98367B

    #98367B

    oklch(49.5% 0.153 341.2)

Open the analogous palette in the generator

Split complementary

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

  • #7E42A0

    #7E42A0

    oklch(49.5% 0.153 311.5)

  • #6E6300

    #6E6300

    oklch(49.5% 0.104 101.8)

  • #00744E

    #00744E

    oklch(49.4% 0.108 161.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7E42A0

    #7E42A0

    oklch(49.5% 0.153 311.5)

  • #875600

    #875600

    oklch(49.6% 0.106 71.5)

  • #00716E

    #00716E

    oklch(49.6% 0.085 191.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7E42A0

    #7E42A0

    oklch(49.5% 0.153 311.5)

  • #A43B00

    #A43B00

    oklch(49.5% 0.15 41.8)

  • #447100

    #447100

    oklch(49.6% 0.137 131.6)

  • #006D87

    #006D87

    oklch(49.6% 0.091 221.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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