#7E2A52

Closest named color: Red Purple (#820747). oklch(42.2% 0.123 354.2), rgb(126, 42, 82).

Aa

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

About this color

#7E2A52 is a dark, moderately saturated red. In OKLCH its lightness is 42%, its chroma 0.123 and its hue 354°. Its hue sits on the warm side of the wheel. The nearest named color is Red Purple (#820747), ΔE 0.043 away. White text reads best on it, at 8.97:1.

Hue familyReds
Lightnessdark (42%)
Chromamoderately saturated (0.123)
Temperaturewarm
Nearest nameRed Purple (#820747)
Black text2.34:1
White text8.97:1

Values

HEX#7E2A52
RGBrgb(126, 42, 82)
HSLhsl(331, 50%, 33%)
OKLCHoklch(42.2% 0.123 354.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 #7E2A52 8.97:1 AAA Lc -94.3 Preferred for body text
Black text on #7E2A52 2.34:1 Fails Lc 14.1 Not readable
#7E2A52 text on white 8.97:1 AAA Lc 89.9 Fine for body text
#7E2A52 text on black 2.34:1 Fails Lc -12.4 Not readable

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 800.

  1. Step 50

    50

    #FBF3F6

    oklch(97.1% 0.009 352.4)

  2. Step 100

    100

    #F6E4EB

    oklch(93.5% 0.022 351.9)

  3. Step 200

    200

    #F0CFDB

    oklch(88.6% 0.04 354)

  4. Step 300

    300

    #E7AEC4

    oklch(81% 0.072 353.8)

  5. Step 400

    400

    #D881A5

    oklch(70.6% 0.115 354.1)

  6. Step 500

    500

    #CC5F8F

    oklch(63.2% 0.147 354.5)

  7. Step 600

    600

    #B74279

    oklch(55.6% 0.161 354.5)

  8. Step 700

    700

    #9D3366

    oklch(49.1% 0.149 354.3)

  9. Step 800

    800 (this color)

    #7E2A52

    oklch(42.2% 0.123 354.2)

  10. Step 900

    900

    #672845

    oklch(37.7% 0.097 354)

  11. Step 950

    950

    #3D1828

    oklch(27% 0.062 354.9)

Export this scale for Tailwind in the Tailwind colors tool

#7E2A52 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)#373F530.137
Deuteranopia (no green cones)#4F4F500.123
Tritanopia (no blue cones)#88243A0.042
Achromatopsia (no color)#4949490.125

Harmonies

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

Complementary

The opposite hue (180°).

  • #7E2A52

    #7E2A52

    oklch(42.2% 0.123 354.2)

  • #005C4A

    #005C4A

    oklch(42.3% 0.081 173.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7E2A52

    #7E2A52

    oklch(42.2% 0.123 354.2)

  • #6D3173

    #6D3173

    oklch(42.1% 0.124 323.9)

  • #842A2A

    #842A2A

    oklch(42.2% 0.124 24.1)

Open the analogous palette in the generator

Split complementary

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

  • #7E2A52

    #7E2A52

    oklch(42.2% 0.123 354.2)

  • #135E1A

    #135E1A

    oklch(42.3% 0.124 144.2)

  • #005960

    #005960

    oklch(42.3% 0.072 204.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7E2A52

    #7E2A52

    oklch(42.2% 0.123 354.2)

  • #4D5300

    #4D5300

    oklch(42.2% 0.095 114.5)

  • #005577

    #005577

    oklch(42.4% 0.089 234.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7E2A52

    #7E2A52

    oklch(42.2% 0.123 354.2)

  • #644900

    #644900

    oklch(42.3% 0.087 84.2)

  • #005C4A

    #005C4A

    oklch(42.3% 0.081 173.4)

  • #2A4990

    #2A4990

    oklch(42.2% 0.123 264.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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