#C798E7

Closest named color: Baby Purple (#CA9BF7). oklch(75.2% 0.121 310.9), rgb(199, 152, 231).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (75%)
Chromamoderately saturated (0.121)
Temperaturein between
Nearest nameBaby Purple (#CA9BF7)
Black text9.07:1
White text2.31:1

Values

HEX#C798E7
RGBrgb(199, 152, 231)
HSLhsl(276, 62%, 75%)
OKLCHoklch(75.2% 0.121 310.9)

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 #C798E7 2.31:1 Fails Lc -50.4 Large or bold text, headings
Black text on #C798E7 9.07:1 AAA Lc 58.4 Large or bold text, headings
#C798E7 text on white 2.31:1 Fails Lc 45.5 Large or bold text, headings
#C798E7 text on black 9.07:1 AAA Lc -56.5 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

    #F8F4FB

    oklch(97.2% 0.01 311.2)

  2. Step 100

    100

    #EEE6F5

    oklch(93.6% 0.022 309.6)

  3. Step 200

    200

    #E2D2EE

    oklch(88.5% 0.042 310.9)

  4. Step 300

    300

    #D0B3E5

    oklch(80.8% 0.076 310.8)

  5. Step 400

    400 (this color)

    #C798E7

    oklch(75.2% 0.121 310.9)

  6. Step 500

    500

    #A76BCD

    oklch(63.1% 0.154 311)

  7. Step 600

    600

    #9250BA

    oklch(55.6% 0.168 310.8)

  8. Step 700

    700

    #7D40A0

    oklch(49.1% 0.156 311.3)

  9. Step 800

    800

    #653582

    oklch(42.6% 0.13 310.8)

  10. Step 900

    900

    #522F68

    oklch(37.6% 0.101 310.8)

  11. Step 950

    950

    #301C3D

    oklch(26.9% 0.064 310.7)

Export this scale for Tailwind in the Tailwind colors tool

#C798E7 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)#8AA8EA0.090
Deuteranopia (no green cones)#94ABE50.083
Tritanopia (no blue cones)#C4A3B50.087
Achromatopsia (no color)#AAAAAA0.122

Harmonies

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

Complementary

The opposite hue (180°).

  • #C798E7

    #C798E7

    oklch(75.2% 0.121 310.9)

  • #93BE6A

    #93BE6A

    oklch(75.1% 0.122 131)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C798E7

    #C798E7

    oklch(75.2% 0.121 310.9)

  • #A1A5F9

    #A1A5F9

    oklch(75.2% 0.12 281)

  • #E28FC5

    #E28FC5

    oklch(75.1% 0.121 341.1)

Open the analogous palette in the generator

Split complementary

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

  • #C798E7

    #C798E7

    oklch(75.2% 0.121 310.9)

  • #BFB04D

    #BFB04D

    oklch(75% 0.121 100.8)

  • #5FC695

    #5FC695

    oklch(75.2% 0.121 160.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C798E7

    #C798E7

    oklch(75.2% 0.121 310.9)

  • #DFA151

    #DFA151

    oklch(75.3% 0.121 71)

  • #2DC6C1

    #2DC6C1

    oklch(75.1% 0.121 191.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C798E7

    #C798E7

    oklch(75.2% 0.121 310.9)

  • #EF9371

    #EF9371

    oklch(75.1% 0.121 40.9)

  • #93BE6A

    #93BE6A

    oklch(75.1% 0.122 131)

  • #3DC0E4

    #3DC0E4

    oklch(75.3% 0.121 220.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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