#7D298C

Closest named color: Dark Magenta (#8B008B). oklch(45% 0.169 321.2), rgb(125, 41, 140).

Aa

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

About this color

#7D298C is a dark, vivid purple. In OKLCH its lightness is 45%, its chroma 0.169 and its hue 321°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Magenta (#8B008B), ΔE 0.044 away. White text reads best on it, at 8.17:1.

Hue familyPurples
Lightnessdark (45%)
Chromavivid (0.169)
Temperaturein between
Nearest nameDark Magenta (#8B008B)
Black text2.56:1
White text8.17:1

Values

HEX#7D298C
RGBrgb(125, 41, 140)
HSLhsl(291, 55%, 35%)
OKLCHoklch(45% 0.169 321.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 #7D298C 8.17:1 AAA Lc -92.1 Preferred for body text
Black text on #7D298C 2.56:1 Fails Lc 16.6 Dividers and decoration only
#7D298C text on white 8.17:1 AAA Lc 87.4 Fine for body text
#7D298C text on black 2.56:1 Fails Lc -14.7 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

    #FAF3FB

    oklch(97.2% 0.013 321.9)

  2. Step 100

    100

    #F3E4F6

    oklch(93.6% 0.029 320.6)

  3. Step 200

    200

    #EACEEF

    oklch(88.5% 0.054 321.1)

  4. Step 300

    300

    #DEACE7

    oklch(80.9% 0.098 321.2)

  5. Step 400

    400

    #CD7DDB

    oklch(70.8% 0.157 321.5)

  6. Step 500

    500

    #BE56D1

    oklch(63.1% 0.201 321.2)

  7. Step 600

    600

    #AA34BE

    oklch(55.7% 0.219 321.4)

  8. Step 700

    700

    #9124A4

    oklch(49% 0.204 321.1)

  9. Step 800

    800 (this color)

    #7D298C

    oklch(45% 0.169 321.2)

  10. Step 900

    900

    #5F226B

    oklch(37.6% 0.132 320.7)

  11. Step 950

    950

    #38153E

    oklch(26.9% 0.084 321.6)

Export this scale for Tailwind in the Tailwind colors tool

#7D298C 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)#03498F0.172
Deuteranopia (no green cones)#34528A0.146
Tritanopia (no blue cones)#7E3B570.103
Achromatopsia (no color)#4F4F4F0.170

Harmonies

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

Complementary

The opposite hue (180°).

  • #7D298C

    #7D298C

    oklch(45% 0.169 321.2)

  • #126800

    #126800

    oklch(45.1% 0.149 141.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7D298C

    #7D298C

    oklch(45% 0.169 321.2)

  • #5A3AA9

    #5A3AA9

    oklch(45% 0.169 291.4)

  • #941960

    #941960

    oklch(45% 0.168 351.3)

Open the analogous palette in the generator

Split complementary

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

  • #7D298C

    #7D298C

    oklch(45% 0.169 321.2)

  • #585A00

    #585A00

    oklch(45.1% 0.099 111.3)

  • #00654F

    #00654F

    oklch(45.1% 0.088 171.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7D298C

    #7D298C

    oklch(45% 0.169 321.2)

  • #6F4F00

    #6F4F00

    oklch(45% 0.093 81.6)

  • #006167

    #006167

    oklch(44.8% 0.076 202.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7D298C

    #7D298C

    oklch(45% 0.169 321.2)

  • #863E00

    #863E00

    oklch(45% 0.117 51.4)

  • #126800

    #126800

    oklch(45.1% 0.149 141.2)

  • #005D7E

    #005D7E

    oklch(44.9% 0.091 231.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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