#D797F5

Closest named color: Baby Purple (#CA9BF7). oklch(77.2% 0.146 314.5), rgb(215, 151, 245).

Aa

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

About this color

#D797F5 is a medium-light, vivid purple. In OKLCH its lightness is 77%, its chroma 0.146 and its hue 314°. 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.63:1.

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

Values

HEX#D797F5
RGBrgb(215, 151, 245)
HSLhsl(281, 82%, 78%)
OKLCHoklch(77.2% 0.146 314.5)

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 #D797F5 2.17:1 Fails Lc -47.4 Large or bold text, headings
Black text on #D797F5 9.63:1 AAA Lc 61.2 Content text, not long reading
#D797F5 text on white 2.17:1 Fails Lc 42.7 Non-text elements, placeholder text
#D797F5 text on black 9.63:1 AAA Lc -59.5 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

    #F5E2FE

    oklch(93.6% 0.042 315.1)

  3. Step 200

    200

    #EDCAFF

    oklch(88.5% 0.081 314.1)

  4. Step 300

    300 (this color)

    #D797F5

    oklch(77.2% 0.146 314.5)

  5. Step 400

    400

    #D26BFF

    oklch(70.7% 0.224 314.3)

  6. Step 500

    500

    #C726FF

    oklch(63.1% 0.292 314.5)

  7. Step 600

    600

    #AB00DE

    oklch(55.6% 0.275 314.5)

  8. Step 700

    700

    #9000BC

    oklch(49% 0.242 314.4)

  9. Step 800

    800

    #77009C

    oklch(42.7% 0.211 314.4)

  10. Step 900

    900

    #640083

    oklch(37.7% 0.186 314.7)

  11. Step 950

    950

    #3B064F

    oklch(27% 0.124 313.9)

Export this scale for Tailwind in the Tailwind colors tool

#D797F5 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)#87ACF90.118
Deuteranopia (no green cones)#97B1F20.107
Tritanopia (no blue cones)#D5A4BB0.099
Achromatopsia (no color)#B0B0B00.147

Harmonies

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

Complementary

The opposite hue (180°).

  • #D797F5

    #D797F5

    oklch(77.2% 0.146 314.5)

  • #8CC965

    #8CC965

    oklch(77.2% 0.146 134.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D797F5

    #D797F5

    oklch(77.2% 0.146 314.5)

  • #ACAAFF

    #ACAAFF

    oklch(77.2% 0.12 284.3)

  • #F58DCB

    #F58DCB

    oklch(77.2% 0.145 344.4)

Open the analogous palette in the generator

Split complementary

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

  • #D797F5

    #D797F5

    oklch(77.2% 0.146 314.5)

  • #C4B936

    #C4B936

    oklch(77.2% 0.146 104.5)

  • #3DD29C

    #3DD29C

    oklch(77.3% 0.147 164.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D797F5

    #D797F5

    oklch(77.2% 0.146 314.5)

  • #EBA535

    #EBA535

    oklch(77.1% 0.146 74.3)

  • #00CECE

    #00CECE

    oklch(77.1% 0.132 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D797F5

    #D797F5

    oklch(77.2% 0.146 314.5)

  • #FF9565

    #FF9565

    oklch(77.2% 0.143 44.5)

  • #8CC965

    #8CC965

    oklch(77.2% 0.146 134.5)

  • #00C7FA

    #00C7FA

    oklch(77.2% 0.146 224.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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