#A787FB

Closest named color: Periwinkle (#8E82FE). oklch(70.3% 0.166 294.4), rgb(167, 135, 251).

Aa

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

About this color

#A787FB is a medium-light, vivid purple. In OKLCH its lightness is 70%, its chroma 0.166 and its hue 294°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Periwinkle (#8E82FE), ΔE 0.041 away. Black text reads best on it, at 7.50:1.

Hue familyPurples
Lightnessmedium-light (70%)
Chromavivid (0.166)
Temperaturein between
Nearest namePeriwinkle (#8E82FE)
Black text7.50:1
White text2.79:1

Values

HEX#A787FB
RGBrgb(167, 135, 251)
HSLhsl(257, 94%, 76%)
OKLCHoklch(70.3% 0.166 294.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 #A787FB 2.79:1 Fails Lc -59.0 Large or bold text, headings
Black text on #A787FB 7.50:1 AAA Lc 50.3 Large or bold text, headings
#A787FB text on white 2.79:1 Fails Lc 53.7 Large or bold text, headings
#A787FB text on black 7.50:1 AAA Lc -48.1 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

    #F6F4FE

    oklch(97.2% 0.013 295.3)

  2. Step 100

    100

    #EBE6FD

    oklch(93.6% 0.031 295.8)

  3. Step 200

    200

    #DBD2FC

    oklch(88.4% 0.058 295)

  4. Step 300

    300

    #C4B4FD

    oklch(80.9% 0.103 294)

  5. Step 400

    400 (this color)

    #A787FB

    oklch(70.3% 0.166 294.4)

  6. Step 500

    500

    #9565FA

    oklch(63.1% 0.212 294.3)

  7. Step 600

    600

    #8145E9

    oklch(55.5% 0.231 294.3)

  8. Step 700

    700

    #6E35CB

    oklch(49.2% 0.215 294.4)

  9. Step 800

    800

    #592EA4

    oklch(42.8% 0.178 294.3)

  10. Step 900

    900

    #492B82

    oklch(37.7% 0.139 294.7)

  11. Step 950

    950

    #2A1A4C

    oklch(26.9% 0.089 294.4)

Export this scale for Tailwind in the Tailwind colors tool

#A787FB 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)#609CFF0.097
Deuteranopia (no green cones)#6599F80.092
Tritanopia (no blue cones)#949DB50.134
Achromatopsia (no color)#9A9A9A0.167

Harmonies

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

Complementary

The opposite hue (180°).

  • #A787FB

    #A787FB

    oklch(70.3% 0.166 294.4)

  • #9EA900

    #9EA900

    oklch(70.2% 0.158 114.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #A787FB

    #A787FB

    oklch(70.3% 0.166 294.4)

  • #6E9BFF

    #6E9BFF

    oklch(70.2% 0.155 264.5)

  • #D177D8

    #D177D8

    oklch(70.2% 0.166 324.5)

Open the analogous palette in the generator

Split complementary

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

  • #A787FB

    #A787FB

    oklch(70.3% 0.166 294.4)

  • #C99600

    #C99600

    oklch(70.3% 0.144 84.2)

  • #52B957

    #52B957

    oklch(70.2% 0.167 144.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #A787FB

    #A787FB

    oklch(70.3% 0.166 294.4)

  • #EC7E1D

    #EC7E1D

    oklch(70.4% 0.166 54.6)

  • #00B99A

    #00B99A

    oklch(70.1% 0.132 174.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #A787FB

    #A787FB

    oklch(70.3% 0.166 294.4)

  • #F56F6A

    #F56F6A

    oklch(70.2% 0.166 24.4)

  • #9EA900

    #9EA900

    oklch(70.2% 0.158 114.4)

  • #00B4C2

    #00B4C2

    oklch(70.2% 0.12 204.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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