#D798FE

Closest named color: Baby Purple (#CA9BF7). oklch(77.8% 0.154 311.6), rgb(215, 152, 254).

Aa

Black text reads best on this color (9.81:1).

About this color

#D798FE is a medium-light, vivid purple. In OKLCH its lightness is 78%, its chroma 0.154 and its hue 312°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Baby Purple (#CA9BF7), ΔE 0.024 away. Black text reads best on it, at 9.81:1.

Hue familyPurples
Lightnessmedium-light (78%)
Chromavivid (0.154)
Temperaturein between
Nearest nameBaby Purple (#CA9BF7)
Black text9.81:1
White text2.14:1

Values

HEX#D798FE
RGBrgb(215, 152, 254)
HSLhsl(277, 98%, 80%)
OKLCHoklch(77.8% 0.154 311.6)

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 #D798FE 2.14:1 Fails Lc -46.5 Large or bold text, headings
Black text on #D798FE 9.81:1 AAA Lc 62.1 Content text, not long reading
#D798FE text on white 2.14:1 Fails Lc 41.8 Non-text elements, placeholder text
#D798FE text on black 9.81:1 AAA Lc -60.4 Content text, not long reading

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

  1. Step 50

    50

    #FAF2FF

    oklch(97.1% 0.019 312.8)

  2. Step 100

    100

    #F3E2FF

    oklch(93.5% 0.043 311.5)

  3. Step 200

    200

    #EACBFF

    oklch(88.5% 0.078 311.5)

  4. Step 300

    300 (this color)

    #D798FE

    oklch(77.8% 0.154 311.6)

  5. Step 400

    400

    #CB71FF

    oklch(70.7% 0.212 311.4)

  6. Step 500

    500

    #BF37FF

    oklch(63.1% 0.278 311.7)

  7. Step 600

    600

    #A700E5

    oklch(55.6% 0.279 311.7)

  8. Step 700

    700

    #8D00C2

    oklch(49.1% 0.246 311.7)

  9. Step 800

    800

    #7400A1

    oklch(42.7% 0.214 311.5)

  10. Step 900

    900

    #610088

    oklch(37.7% 0.189 311.3)

  11. Step 950

    950

    #3B0353

    oklch(27.1% 0.131 311.9)

Export this scale for Tailwind in the Tailwind colors tool

#D798FE 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)#84AEFF0.121
Deuteranopia (no green cones)#93B3FB0.111
Tritanopia (no blue cones)#D3A7BF0.109
Achromatopsia (no color)#B1B1B10.155

Harmonies

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

Complementary

The opposite hue (180°).

  • #D798FE

    #D798FE

    oklch(77.8% 0.154 311.6)

  • #92CB5B

    #92CB5B

    oklch(77.9% 0.155 131.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D798FE

    #D798FE

    oklch(77.8% 0.154 311.6)

  • #AAADFF

    #AAADFF

    oklch(77.7% 0.116 281.7)

  • #F88CD3

    #F88CD3

    oklch(77.7% 0.155 341.4)

Open the analogous palette in the generator

Split complementary

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

  • #D798FE

    #D798FE

    oklch(77.8% 0.154 311.6)

  • #CBB923

    #CBB923

    oklch(77.7% 0.155 101.9)

  • #3CD497

    #3CD497

    oklch(77.7% 0.154 161.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D798FE

    #D798FE

    oklch(77.8% 0.154 311.6)

  • #F3A42C

    #F3A42C

    oklch(77.8% 0.154 71.7)

  • #00D1CC

    #00D1CC

    oklch(77.8% 0.134 191.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D798FE

    #D798FE

    oklch(77.8% 0.154 311.6)

  • #FF9770

    #FF9770

    oklch(77.7% 0.136 41.1)

  • #92CB5B

    #92CB5B

    oklch(77.9% 0.155 131.6)

  • #00CAF7

    #00CAF7

    oklch(77.7% 0.143 221.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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