#C797E5

Closest named color: Baby Purple (#CA9BF7). oklch(74.9% 0.12 311.8), rgb(199, 151, 229).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (75%)
Chromamoderately saturated (0.120)
Temperaturein between
Nearest nameBaby Purple (#CA9BF7)
Black text8.98:1
White text2.33:1

Values

HEX#C797E5
RGBrgb(199, 151, 229)
HSLhsl(277, 60%, 75%)
OKLCHoklch(74.9% 0.12 311.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 #C797E5 2.33:1 Fails Lc -50.9 Large or bold text, headings
Black text on #C797E5 8.98:1 AAA Lc 58.0 Large or bold text, headings
#C797E5 text on white 2.33:1 Fails Lc 46.0 Large or bold text, headings
#C797E5 text on black 8.98:1 AAA Lc -56.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

    #F8F4FA

    oklch(97.2% 0.009 314.8)

  2. Step 100

    100

    #EFE6F5

    oklch(93.6% 0.022 312.2)

  3. Step 200

    200

    #E2D2EE

    oklch(88.5% 0.042 310.9)

  4. Step 300

    300

    #D1B3E4

    oklch(80.9% 0.075 312.2)

  5. Step 400

    400 (this color)

    #C797E5

    oklch(74.9% 0.12 311.8)

  6. Step 500

    500

    #A86BCC

    oklch(63.2% 0.153 311.7)

  7. Step 600

    600

    #9350B9

    oklch(55.6% 0.167 311.6)

  8. Step 700

    700

    #7D409F

    oklch(49.1% 0.155 311.7)

  9. Step 800

    800

    #663581

    oklch(42.6% 0.129 311.9)

  10. Step 900

    900

    #532F68

    oklch(37.7% 0.101 311.6)

  11. Step 950

    950

    #311C3D

    oklch(27% 0.065 312.1)

Export this scale for Tailwind in the Tailwind colors tool

#C797E5 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)#8AA7E80.090
Deuteranopia (no green cones)#94ABE30.085
Tritanopia (no blue cones)#C4A2B40.085
Achromatopsia (no color)#A9A9A90.121

Harmonies

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

Complementary

The opposite hue (180°).

  • #C797E5

    #C797E5

    oklch(74.9% 0.12 311.8)

  • #91BE6B

    #91BE6B

    oklch(75% 0.121 132)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C797E5

    #C797E5

    oklch(74.9% 0.12 311.8)

  • #A1A4F8

    #A1A4F8

    oklch(74.9% 0.12 281.5)

  • #E28EC3

    #E28EC3

    oklch(74.9% 0.121 342.1)

Open the analogous palette in the generator

Split complementary

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

  • #C797E5

    #C797E5

    oklch(74.9% 0.12 311.8)

  • #BDB04E

    #BDB04E

    oklch(74.9% 0.12 101.8)

  • #5DC596

    #5DC596

    oklch(74.9% 0.12 161.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C797E5

    #C797E5

    oklch(74.9% 0.12 311.8)

  • #DDA050

    #DDA050

    oklch(74.9% 0.121 71.5)

  • #2CC5C1

    #2CC5C1

    oklch(74.8% 0.12 192.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C797E5

    #C797E5

    oklch(74.9% 0.12 311.8)

  • #EE9370

    #EE9370

    oklch(75% 0.121 41.7)

  • #91BE6B

    #91BE6B

    oklch(75% 0.121 132)

  • #3FBEE4

    #3FBEE4

    oklch(74.8% 0.121 222.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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