#D298F7

Closest named color: Baby Purple (#CA9BF7). oklch(77% 0.144 311.4), rgb(210, 152, 247).

Aa

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

About this color

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

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

Values

HEX#D298F7
RGBrgb(210, 152, 247)
HSLhsl(277, 86%, 78%)
OKLCHoklch(77% 0.144 311.4)

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 #D298F7 2.19:1 Fails Lc -47.8 Large or bold text, headings
Black text on #D298F7 9.57:1 AAA Lc 60.9 Content text, not long reading
#D298F7 text on white 2.19:1 Fails Lc 43.0 Non-text elements, placeholder text
#D298F7 text on black 9.57:1 AAA Lc -59.2 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

    #F3E3FF

    oklch(93.7% 0.041 310.9)

  3. Step 200

    200

    #EACBFF

    oklch(88.5% 0.078 311.5)

  4. Step 300

    300 (this color)

    #D298F7

    oklch(77% 0.144 311.4)

  5. Step 400

    400

    #CB71FF

    oklch(70.7% 0.212 311.4)

  6. Step 500

    500

    #BE38FF

    oklch(63% 0.277 311.3)

  7. Step 600

    600

    #A700E6

    oklch(55.7% 0.279 311.5)

  8. Step 700

    700

    #8D00C3

    oklch(49.2% 0.247 311.4)

  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

    #390850

    oklch(26.9% 0.122 311.4)

Export this scale for Tailwind in the Tailwind colors tool

#D298F7 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)#86ACFB0.111
Deuteranopia (no green cones)#94B0F40.102
Tritanopia (no blue cones)#CEA6BC0.103
Achromatopsia (no color)#AFAFAF0.145

Harmonies

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

Complementary

The opposite hue (180°).

  • #D298F7

    #D298F7

    oklch(77% 0.144 311.4)

  • #92C760

    #92C760

    oklch(77% 0.145 131.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D298F7

    #D298F7

    oklch(77% 0.144 311.4)

  • #A7ABFF

    #A7ABFF

    oklch(77% 0.12 281.1)

  • #F18DCF

    #F18DCF

    oklch(76.9% 0.145 341.1)

Open the analogous palette in the generator

Split complementary

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

  • #D298F7

    #D298F7

    oklch(77% 0.144 311.4)

  • #C8B634

    #C8B634

    oklch(76.9% 0.144 101.1)

  • #49D096

    #49D096

    oklch(76.9% 0.145 161.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D298F7

    #D298F7

    oklch(77% 0.144 311.4)

  • #EDA33A

    #EDA33A

    oklch(77% 0.145 71.4)

  • #00CEC9

    #00CEC9

    oklch(76.9% 0.132 191.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D298F7

    #D298F7

    oklch(77% 0.144 311.4)

  • #FF936A

    #FF936A

    oklch(77% 0.142 41.3)

  • #92C760

    #92C760

    oklch(77% 0.145 131.5)

  • #00C7F3

    #00C7F3

    oklch(76.9% 0.141 221.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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