#7E2B9A

Closest named color: Rebecca Purple (#663399). oklch(46.3% 0.18 316.2), rgb(126, 43, 154).

Aa

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

About this color

#7E2B9A is a medium-dark, vivid purple. In OKLCH its lightness is 46%, its chroma 0.180 and its hue 316°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.048 away. White text reads best on it, at 7.77:1.

Hue familyPurples
Lightnessmedium-dark (46%)
Chromavivid (0.180)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.69:1
White text7.77:1

Values

HEX#7E2B9A
RGBrgb(126, 43, 154)
HSLhsl(285, 56%, 39%)
OKLCHoklch(46.3% 0.18 316.2)

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 #7E2B9A 7.77:1 AAA Lc -90.9 Preferred for body text
Black text on #7E2B9A 2.69:1 Fails Lc 17.9 Dividers and decoration only
#7E2B9A text on white 7.77:1 AAA Lc 86.1 Fine for body text
#7E2B9A text on black 2.69:1 Fails Lc -15.9 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

    #E6D0EF

    oklch(88.5% 0.048 316.2)

  4. Step 300

    300

    #D7B0E7

    oklch(81% 0.087 316)

  5. Step 400

    400

    #C284DA

    oklch(70.7% 0.138 316.2)

  6. Step 500

    500

    #B261D0

    oklch(63% 0.178 316.1)

  7. Step 600

    600

    #9E44BD

    oklch(55.6% 0.193 316.4)

  8. Step 700

    700 (this color)

    #7E2B9A

    oklch(46.3% 0.18 316.2)

  9. Step 800

    800

    #6D2D84

    oklch(42.6% 0.148 316)

  10. Step 900

    900

    #592A6A

    oklch(37.8% 0.115 316.2)

  11. Step 950

    950

    #34193E

    oklch(27% 0.074 316.2)

Export this scale for Tailwind in the Tailwind colors tool

#7E2B9A 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)#004D9D0.169
Deuteranopia (no green cones)#2B55970.152
Tritanopia (no blue cones)#7C42600.115
Achromatopsia (no color)#5252520.181

Harmonies

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

Complementary

The opposite hue (180°).

  • #7E2B9A

    #7E2B9A

    oklch(46.3% 0.18 316.2)

  • #306900

    #306900

    oklch(46.3% 0.138 136.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7E2B9A

    #7E2B9A

    oklch(46.3% 0.18 316.2)

  • #563EB6

    #563EB6

    oklch(46.3% 0.18 286.2)

  • #98176D

    #98176D

    oklch(46.2% 0.18 346.1)

Open the analogous palette in the generator

Split complementary

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

  • #7E2B9A

    #7E2B9A

    oklch(46.3% 0.18 316.2)

  • #605C00

    #605C00

    oklch(46.4% 0.099 106.8)

  • #00694C

    #00694C

    oklch(46.2% 0.096 166)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7E2B9A

    #7E2B9A

    oklch(46.3% 0.18 316.2)

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

  • #7E2B9A

    #7E2B9A

    oklch(46.3% 0.18 316.2)

  • #903B00

    #903B00

    oklch(46.2% 0.129 46.2)

  • #306900

    #306900

    oklch(46.3% 0.138 136.1)

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

Similar named colors

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

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