#C797E4

Closest named color: Baby Purple (#CA9BF7). oklch(74.9% 0.119 312.2), rgb(199, 151, 228).

Aa

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

About this color

#C797E4 is a medium-light, moderately saturated purple. In OKLCH its lightness is 75%, its chroma 0.119 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.028 away. Black text reads best on it, at 8.97:1.

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

Values

HEX#C797E4
RGBrgb(199, 151, 228)
HSLhsl(277, 59%, 74%)
OKLCHoklch(74.9% 0.119 312.2)

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 #C797E4 2.33:1 Fails Lc -51.0 Large or bold text, headings
Black text on #C797E4 8.97:1 AAA Lc 57.9 Large or bold text, headings
#C797E4 text on white 2.33:1 Fails Lc 46.0 Large or bold text, headings
#C797E4 text on black 8.97:1 AAA Lc -56.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

    #F8F4FA

    oklch(97.2% 0.009 314.8)

  2. Step 100

    100

    #EFE6F5

    oklch(93.6% 0.022 312.2)

  3. Step 200

    200

    #E2D2ED

    oklch(88.5% 0.04 311.7)

  4. Step 300

    300

    #D1B3E4

    oklch(80.9% 0.075 312.2)

  5. Step 400

    400 (this color)

    #C797E4

    oklch(74.9% 0.119 312.2)

  6. Step 500

    500

    #A86BCB

    oklch(63.1% 0.152 312.1)

  7. Step 600

    600

    #9350B8

    oklch(55.6% 0.166 311.9)

  8. Step 700

    700

    #7E409E

    oklch(49.1% 0.154 312.5)

  9. Step 800

    800

    #663680

    oklch(42.7% 0.126 312.2)

  10. Step 900

    900

    #532F67

    oklch(37.6% 0.1 312.2)

  11. Step 950

    950

    #311C3C

    oklch(27% 0.063 313.1)

Export this scale for Tailwind in the Tailwind colors tool

#C797E4 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)#8AA7E70.090
Deuteranopia (no green cones)#95ABE20.084
Tritanopia (no blue cones)#C4A1B30.084
Achromatopsia (no color)#A9A9A90.120

Harmonies

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

Complementary

The opposite hue (180°).

  • #C797E4

    #C797E4

    oklch(74.9% 0.119 312.2)

  • #91BD6C

    #91BD6C

    oklch(74.8% 0.119 132)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C797E4

    #C797E4

    oklch(74.9% 0.119 312.2)

  • #A2A4F7

    #A2A4F7

    oklch(74.9% 0.119 282.1)

  • #E18EC2

    #E18EC2

    oklch(74.7% 0.119 342.2)

Open the analogous palette in the generator

Split complementary

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

  • #C797E4

    #C797E4

    oklch(74.9% 0.119 312.2)

  • #BCB04F

    #BCB04F

    oklch(74.8% 0.119 102.3)

  • #5DC597

    #5DC597

    oklch(74.9% 0.119 162.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C797E4

    #C797E4

    oklch(74.9% 0.119 312.2)

  • #DCA151

    #DCA151

    oklch(75% 0.119 72.5)

  • #2FC5C1

    #2FC5C1

    oklch(74.9% 0.119 192.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C797E4

    #C797E4

    oklch(74.9% 0.119 312.2)

  • #ED9370

    #ED9370

    oklch(74.9% 0.12 41.9)

  • #91BD6C

    #91BD6C

    oklch(74.8% 0.119 132)

  • #42BEE3

    #42BEE3

    oklch(74.9% 0.119 221.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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