#A797ED

Closest named color: Periwinkle Blue (#8F99FB). oklch(72.4% 0.124 291.5), rgb(167, 151, 237).

Aa

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

About this color

#A797ED is a medium-light, moderately saturated purple. In OKLCH its lightness is 72%, its chroma 0.124 and its hue 292°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Periwinkle Blue (#8F99FB), ΔE 0.038 away. Black text reads best on it, at 8.29:1.

Hue familyPurples
Lightnessmedium-light (72%)
Chromamoderately saturated (0.124)
Temperaturein between
Nearest namePeriwinkle Blue (#8F99FB)
Black text8.29:1
White text2.53:1

Values

HEX#A797ED
RGBrgb(167, 151, 237)
HSLhsl(251, 70%, 76%)
OKLCHoklch(72.4% 0.124 291.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 #A797ED 2.53:1 Fails Lc -54.7 Large or bold text, headings
Black text on #A797ED 8.29:1 AAA Lc 54.4 Large or bold text, headings
#A797ED text on white 2.53:1 Fails Lc 49.6 Large or bold text, headings
#A797ED text on black 8.29:1 AAA Lc -52.4 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

    #F5F4FC

    oklch(97% 0.011 292)

  2. Step 100

    100

    #EAE8F8

    oklch(93.7% 0.022 291.7)

  3. Step 200

    200

    #D9D5F4

    oklch(88.6% 0.042 291.4)

  4. Step 300

    300

    #C1B8EF

    oklch(80.9% 0.077 292.1)

  5. Step 400

    400 (this color)

    #A797ED

    oklch(72.4% 0.124 291.5)

  6. Step 500

    500

    #8C74E0

    oklch(63% 0.158 291.4)

  7. Step 600

    600

    #775ACE

    oklch(55.6% 0.172 291.3)

  8. Step 700

    700

    #6549B2

    oklch(49.1% 0.16 291.7)

  9. Step 800

    800

    #523D90

    oklch(42.7% 0.132 291.5)

  10. Step 900

    900

    #433573

    oklch(37.7% 0.103 291.1)

  11. Step 950

    950

    #271F43

    oklch(26.9% 0.065 291.6)

Export this scale for Tailwind in the Tailwind colors tool

#A797ED 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)#7FA4F00.058
Deuteranopia (no green cones)#80A1EB0.056
Tritanopia (no blue cones)#97A6B70.103
Achromatopsia (no color)#A3A3A30.124

Harmonies

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

Complementary

The opposite hue (180°).

  • #A797ED

    #A797ED

    oklch(72.4% 0.124 291.5)

  • #A8AD49

    #A8AD49

    oklch(72.3% 0.124 111.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #A797ED

    #A797ED

    oklch(72.4% 0.124 291.5)

  • #7AA5F3

    #7AA5F3

    oklch(72.3% 0.124 261.7)

  • #CA8BD4

    #CA8BD4

    oklch(72.4% 0.124 321.9)

Open the analogous palette in the generator

Split complementary

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

  • #A797ED

    #A797ED

    oklch(72.4% 0.124 291.5)

  • #CD9D3F

    #CD9D3F

    oklch(72.4% 0.123 81.2)

  • #78B96F

    #78B96F

    oklch(72.4% 0.123 141.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #A797ED

    #A797ED

    oklch(72.4% 0.124 291.5)

  • #E38E5A

    #E38E5A

    oklch(72.4% 0.124 51.2)

  • #3CBF9C

    #3CBF9C

    oklch(72.5% 0.124 171.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #A797ED

    #A797ED

    oklch(72.4% 0.124 291.5)

  • #E98583

    #E98583

    oklch(72.4% 0.123 21.8)

  • #A8AD49

    #A8AD49

    oklch(72.3% 0.124 111.8)

  • #00BCC6

    #00BCC6

    oklch(72.4% 0.123 201.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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