#D797F3

Closest named color: Baby Purple (#CA9BF7). oklch(77.1% 0.144 315.1), rgb(215, 151, 243).

Aa

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

About this color

#D797F3 is a medium-light, vivid purple. In OKLCH its lightness is 77%, its chroma 0.144 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.022 away. Black text reads best on it, at 9.61:1.

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

Values

HEX#D797F3
RGBrgb(215, 151, 243)
HSLhsl(282, 79%, 77%)
OKLCHoklch(77.1% 0.144 315.1)

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 #D797F3 2.18:1 Fails Lc -47.6 Large or bold text, headings
Black text on #D797F3 9.61:1 AAA Lc 61.1 Content text, not long reading
#D797F3 text on white 2.18:1 Fails Lc 42.8 Non-text elements, placeholder text
#D797F3 text on black 9.61:1 AAA Lc -59.4 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

    #F5E2FD

    oklch(93.6% 0.041 316)

  3. Step 200

    200

    #EDCAFE

    oklch(88.5% 0.079 314.6)

  4. Step 300

    300 (this color)

    #D797F3

    oklch(77.1% 0.144 315.1)

  5. Step 400

    400

    #D469FF

    oklch(70.7% 0.227 315.1)

  6. Step 500

    500

    #C823FE

    oklch(63% 0.293 315.1)

  7. Step 600

    600

    #AC00DC

    oklch(55.6% 0.273 315.3)

  8. Step 700

    700

    #9100BB

    oklch(49.1% 0.242 315)

  9. Step 800

    800

    #78009B

    oklch(42.8% 0.211 315.2)

  10. Step 900

    900

    #640082

    oklch(37.6% 0.185 315.1)

  11. Step 950

    950

    #3B074D

    oklch(26.9% 0.121 315)

Export this scale for Tailwind in the Tailwind colors tool

#D797F3 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)#88ACF60.117
Deuteranopia (no green cones)#97B1F00.107
Tritanopia (no blue cones)#D6A3BA0.097
Achromatopsia (no color)#AFAFAF0.145

Harmonies

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

Complementary

The opposite hue (180°).

  • #D797F3

    #D797F3

    oklch(77.1% 0.144 315.1)

  • #8BC968

    #8BC968

    oklch(77.2% 0.144 135.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D797F3

    #D797F3

    oklch(77.1% 0.144 315.1)

  • #ADA9FF

    #ADA9FF

    oklch(77.1% 0.122 285.3)

  • #F48DC9

    #F48DC9

    oklch(77% 0.143 345.1)

Open the analogous palette in the generator

Split complementary

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

  • #D797F3

    #D797F3

    oklch(77.1% 0.144 315.1)

  • #C2B93A

    #C2B93A

    oklch(77.1% 0.143 105.3)

  • #3FD19E

    #3FD19E

    oklch(77.1% 0.143 165.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D797F3

    #D797F3

    oklch(77.1% 0.144 315.1)

  • #E9A638

    #E9A638

    oklch(77.1% 0.143 75.3)

  • #00CECF

    #00CECF

    oklch(77.1% 0.132 195.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D797F3

    #D797F3

    oklch(77.1% 0.144 315.1)

  • #FF9563

    #FF9563

    oklch(77.2% 0.143 45.3)

  • #8BC968

    #8BC968

    oklch(77.2% 0.144 135.3)

  • #15C6F9

    #15C6F9

    oklch(77% 0.144 225.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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