#D798F4

Closest named color: Baby Purple (#CA9BF7). oklch(77.3% 0.143 314.7), rgb(215, 152, 244).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (77%)
Chromavivid (0.143)
Temperaturein between
Nearest nameBaby Purple (#CA9BF7)
Black text9.68:1
White text2.16:1

Values

HEX#D798F4
RGBrgb(215, 152, 244)
HSLhsl(281, 81%, 78%)
OKLCHoklch(77.3% 0.143 314.7)

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 #D798F4 2.16:1 Fails Lc -47.2 Large or bold text, headings
Black text on #D798F4 9.68:1 AAA Lc 61.5 Content text, not long reading
#D798F4 text on white 2.16:1 Fails Lc 42.5 Non-text elements, placeholder text
#D798F4 text on black 9.68:1 AAA Lc -59.7 Large or bold text, headings

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

    #F4E2FE

    oklch(93.6% 0.042 313.7)

  3. Step 200

    200

    #EDCAFE

    oklch(88.5% 0.079 314.6)

  4. Step 300

    300 (this color)

    #D798F4

    oklch(77.3% 0.143 314.7)

  5. Step 400

    400

    #D36AFF

    oklch(70.7% 0.225 314.7)

  6. Step 500

    500

    #C725FF

    oklch(63.1% 0.293 314.5)

  7. Step 600

    600

    #AB00DE

    oklch(55.6% 0.275 314.5)

  8. Step 700

    700

    #9100BC

    oklch(49.2% 0.243 314.7)

  9. Step 800

    800

    #77009B

    oklch(42.6% 0.21 314.7)

  10. Step 900

    900

    #640083

    oklch(37.7% 0.186 314.7)

  11. Step 950

    950

    #3B074E

    oklch(27% 0.122 314.4)

Export this scale for Tailwind in the Tailwind colors tool

#D798F4 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)#89ACF70.115
Deuteranopia (no green cones)#98B2F10.106
Tritanopia (no blue cones)#D5A4BB0.097
Achromatopsia (no color)#B0B0B00.144

Harmonies

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

Complementary

The opposite hue (180°).

  • #D798F4

    #D798F4

    oklch(77.3% 0.143 314.7)

  • #8DC968

    #8DC968

    oklch(77.3% 0.143 134.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D798F4

    #D798F4

    oklch(77.3% 0.143 314.7)

  • #ADAAFF

    #ADAAFF

    oklch(77.3% 0.12 284.8)

  • #F58ECB

    #F58ECB

    oklch(77.4% 0.144 344.6)

Open the analogous palette in the generator

Split complementary

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

  • #D798F4

    #D798F4

    oklch(77.3% 0.143 314.7)

  • #C4B93B

    #C4B93B

    oklch(77.3% 0.143 104.3)

  • #42D19E

    #42D19E

    oklch(77.2% 0.142 165)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D798F4

    #D798F4

    oklch(77.3% 0.143 314.7)

  • #EAA63A

    #EAA63A

    oklch(77.3% 0.143 74.6)

  • #00CFCF

    #00CFCF

    oklch(77.4% 0.132 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D798F4

    #D798F4

    oklch(77.3% 0.143 314.7)

  • #FF9665

    #FF9665

    oklch(77.4% 0.142 45.1)

  • #8DC968

    #8DC968

    oklch(77.3% 0.143 134.7)

  • #17C7F9

    #17C7F9

    oklch(77.2% 0.143 224.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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