#D98AF2

Closest named color: Violet (#EE82EE). oklch(75.2% 0.165 317.7), rgb(217, 138, 242).

Aa

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

About this color

#D98AF2 is a medium-light, vivid purple. In OKLCH its lightness is 75%, its chroma 0.165 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Violet (#EE82EE), ΔE 0.037 away. Black text reads best on it, at 8.86:1.

Hue familyPurples
Lightnessmedium-light (75%)
Chromavivid (0.165)
Temperaturein between
Nearest nameViolet (#EE82EE)
Black text8.86:1
White text2.36:1

Values

HEX#D98AF2
RGBrgb(217, 138, 242)
HSLhsl(286, 80%, 75%)
OKLCHoklch(75.2% 0.165 317.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 #D98AF2 2.36:1 Fails Lc -51.4 Large or bold text, headings
Black text on #D98AF2 8.86:1 AAA Lc 57.6 Large or bold text, headings
#D98AF2 text on white 2.36:1 Fails Lc 46.4 Large or bold text, headings
#D98AF2 text on black 8.86:1 AAA Lc -55.6 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 400.

  1. Step 50

    50

    #F9F3FC

    oklch(97.1% 0.013 314.8)

  2. Step 100

    100

    #F2E4F7

    oklch(93.6% 0.029 317.2)

  3. Step 200

    200

    #E9CEF2

    oklch(88.5% 0.057 317.7)

  4. Step 300

    300

    #DCACEC

    oklch(80.9% 0.102 317.5)

  5. Step 400

    400 (this color)

    #D98AF2

    oklch(75.2% 0.165 317.7)

  6. Step 500

    500

    #BC54DA

    oklch(63.1% 0.211 318)

  7. Step 600

    600

    #A731C8

    oklch(55.6% 0.229 317.6)

  8. Step 700

    700

    #8F20AD

    oklch(49.1% 0.214 317.6)

  9. Step 800

    800

    #741F8C

    oklch(42.7% 0.177 317.5)

  10. Step 900

    900

    #5E2170

    oklch(37.7% 0.138 317.6)

  11. Step 950

    950

    #371541

    oklch(26.9% 0.087 317.9)

Export this scale for Tailwind in the Tailwind colors tool

#D98AF2 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)#79A3F60.143
Deuteranopia (no green cones)#8EABEF0.130
Tritanopia (no blue cones)#D998B30.107
Achromatopsia (no color)#A8A8A80.167

Harmonies

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

Complementary

The opposite hue (180°).

  • #D98AF2

    #D98AF2

    oklch(75.2% 0.165 317.7)

  • #77C658

    #77C658

    oklch(75.1% 0.165 137.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D98AF2

    #D98AF2

    oklch(75.2% 0.165 317.7)

  • #AAA0FF

    #AAA0FF

    oklch(75.2% 0.135 287.5)

  • #F87FC1

    #F87FC1

    oklch(75.2% 0.165 347.9)

Open the analogous palette in the generator

Split complementary

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

  • #D98AF2

    #D98AF2

    oklch(75.2% 0.165 317.7)

  • #BAB500

    #BAB500

    oklch(75.3% 0.162 107.7)

  • #00CD9B

    #00CD9B

    oklch(75.3% 0.154 167.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D98AF2

    #D98AF2

    oklch(75.2% 0.165 317.7)

  • #E4A000

    #E4A000

    oklch(75.2% 0.157 78.2)

  • #00C7CB

    #00C7CB

    oklch(75.3% 0.128 197.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D98AF2

    #D98AF2

    oklch(75.2% 0.165 317.7)

  • #FF8B4A

    #FF8B4A

    oklch(75.3% 0.161 47.8)

  • #77C658

    #77C658

    oklch(75.1% 0.165 137.7)

  • #00BFF6

    #00BFF6

    oklch(75.1% 0.146 227.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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