#AF98F2

Closest named color: Baby Purple (#CA9BF7). oklch(73.5% 0.129 294.8), rgb(175, 152, 242).

Aa

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

About this color

#AF98F2 is a medium-light, moderately saturated purple. In OKLCH its lightness is 73%, its chroma 0.129 and its hue 295°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Baby Purple (#CA9BF7), ΔE 0.043 away. Black text reads best on it, at 8.59:1.

Hue familyPurples
Lightnessmedium-light (73%)
Chromamoderately saturated (0.129)
Temperaturein between
Nearest nameBaby Purple (#CA9BF7)
Black text8.59:1
White text2.44:1

Values

HEX#AF98F2
RGBrgb(175, 152, 242)
HSLhsl(255, 78%, 77%)
OKLCHoklch(73.5% 0.129 294.8)

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 #AF98F2 2.44:1 Fails Lc -53.0 Large or bold text, headings
Black text on #AF98F2 8.59:1 AAA Lc 56.0 Large or bold text, headings
#AF98F2 text on white 2.44:1 Fails Lc 48.0 Large or bold text, headings
#AF98F2 text on black 8.59:1 AAA Lc -54.0 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

    #F6F4FC

    oklch(97.1% 0.011 297.6)

  2. Step 100

    100

    #EAE7F8

    oklch(93.5% 0.023 294.1)

  3. Step 200

    200

    #DBD4F4

    oklch(88.5% 0.044 295.5)

  4. Step 300

    300

    #C4B7F0

    oklch(81% 0.081 295)

  5. Step 400

    400 (this color)

    #AF98F2

    oklch(73.5% 0.129 294.8)

  6. Step 500

    500

    #9271E2

    oklch(63.2% 0.165 294.7)

  7. Step 600

    600

    #7D56CF

    oklch(55.6% 0.179 294.7)

  8. Step 700

    700

    #6A45B3

    oklch(49% 0.167 295)

  9. Step 800

    800

    #563A91

    oklch(42.7% 0.138 294.7)

  10. Step 900

    900

    #473374

    oklch(37.8% 0.108 294.9)

  11. Step 950

    950

    #291E44

    oklch(26.9% 0.069 294.7)

Export this scale for Tailwind in the Tailwind colors tool

#AF98F2 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)#7FA7F50.069
Deuteranopia (no green cones)#83A4F00.064
Tritanopia (no blue cones)#A1A8BA0.106
Achromatopsia (no color)#A6A6A60.130

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF98F2

    #AF98F2

    oklch(73.5% 0.129 294.8)

  • #A7B24A

    #A7B24A

    oklch(73.4% 0.129 114.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF98F2

    #AF98F2

    oklch(73.5% 0.129 294.8)

  • #81A7FB

    #81A7FB

    oklch(73.5% 0.129 264.9)

  • #D28CD6

    #D28CD6

    oklch(73.5% 0.129 324.9)

Open the analogous palette in the generator

Split complementary

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

  • #AF98F2

    #AF98F2

    oklch(73.5% 0.129 294.8)

  • #CFA23A

    #CFA23A

    oklch(73.6% 0.129 84.6)

  • #72BF75

    #72BF75

    oklch(73.6% 0.13 145)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF98F2

    #AF98F2

    oklch(73.5% 0.129 294.8)

  • #E79254

    #E79254

    oklch(73.5% 0.129 55.2)

  • #2DC3A4

    #2DC3A4

    oklch(73.4% 0.129 174.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF98F2

    #AF98F2

    oklch(73.5% 0.129 294.8)

  • #F08780

    #F08780

    oklch(73.6% 0.129 24.7)

  • #A7B24A

    #A7B24A

    oklch(73.4% 0.129 114.7)

  • #00BFCE

    #00BFCE

    oklch(73.4% 0.125 204.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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