#7E42C7

Closest named color: Bluey Purple (#6241C7). oklch(52.2% 0.197 300.3), rgb(126, 66, 199).

Aa

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

About this color

#7E42C7 is a medium-dark, vivid purple. In OKLCH its lightness is 52%, its chroma 0.197 and its hue 300°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Bluey Purple (#6241C7), ΔE 0.051 away. White text reads best on it, at 6.01:1.

Hue familyPurples
Lightnessmedium-dark (52%)
Chromavivid (0.197)
Temperaturein between
Nearest nameBluey Purple (#6241C7)
Black text3.49:1
White text6.01:1

Values

HEX#7E42C7
RGBrgb(126, 66, 199)
HSLhsl(267, 54%, 52%)
OKLCHoklch(52.2% 0.197 300.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 #7E42C7 6.01:1 AA Lc -84.7 Fine for body text
Black text on #7E42C7 3.49:1 AA large text Lc 24.6 Dividers and decoration only
#7E42C7 text on white 6.01:1 AA Lc 79.4 Fine for body text
#7E42C7 text on black 3.49:1 AA large text Lc -22.4 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

    #F7F4FD

    oklch(97.2% 0.012 301.3)

  2. Step 100

    100

    #ECE6FA

    oklch(93.6% 0.027 299.5)

  3. Step 200

    200

    #DED2F8

    oklch(88.5% 0.053 299.7)

  4. Step 300

    300

    #CAB3F5

    oklch(80.9% 0.095 300.3)

  5. Step 400

    400

    #B088F0

    oklch(70.7% 0.152 300.3)

  6. Step 500

    500

    #9E66EB

    oklch(63.1% 0.194 300.3)

  7. Step 600

    600

    #8A48D9

    oklch(55.6% 0.211 300.5)

  8. Step 700

    700 (this color)

    #7E42C7

    oklch(52.2% 0.197 300.3)

  9. Step 800

    800

    #5F3099

    oklch(42.8% 0.163 300)

  10. Step 900

    900

    #4D2C79

    oklch(37.6% 0.126 300.1)

  11. Step 950

    950

    #2D1B47

    oklch(27% 0.08 300)

Export this scale for Tailwind in the Tailwind colors tool

#7E42C7 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)#0062CB0.141
Deuteranopia (no green cones)#0062C40.143
Tritanopia (no blue cones)#6E617F0.148
Achromatopsia (no color)#6363630.198

Harmonies

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

Complementary

The opposite hue (180°).

  • #7E42C7

    #7E42C7

    oklch(52.2% 0.197 300.3)

  • #607300

    #607300

    oklch(52.1% 0.124 120.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7E42C7

    #7E42C7

    oklch(52.2% 0.197 300.3)

  • #4258D9

    #4258D9

    oklch(52.2% 0.198 270.5)

  • #A42D9D

    #A42D9D

    oklch(52.2% 0.197 330.5)

Open the analogous palette in the generator

Split complementary

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

  • #7E42C7

    #7E42C7

    oklch(52.2% 0.197 300.3)

  • #816600

    #816600

    oklch(52.2% 0.107 90.5)

  • #007F3A

    #007F3A

    oklch(52.2% 0.142 150.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7E42C7

    #7E42C7

    oklch(52.2% 0.197 300.3)

  • #9B5500

    #9B5500

    oklch(52.1% 0.122 60)

  • #007B6C

    #007B6C

    oklch(52.2% 0.095 180.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7E42C7

    #7E42C7

    oklch(52.2% 0.197 300.3)

  • #C1200F

    #C1200F

    oklch(52.2% 0.197 30.4)

  • #607300

    #607300

    oklch(52.1% 0.124 120.4)

  • #007786

    #007786

    oklch(52.2% 0.09 210)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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