#C798FC

Closest named color: Baby Purple (#CA9BF7). oklch(76.1% 0.147 304.8), rgb(199, 152, 252).

Aa

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

About this color

#C798FC is a medium-light, vivid purple. In OKLCH its lightness is 76%, its chroma 0.147 and its hue 305°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Baby Purple (#CA9BF7), ΔE 0.013 away. Black text reads best on it, at 9.32:1.

Hue familyPurples
Lightnessmedium-light (76%)
Chromavivid (0.147)
Temperaturein between
Nearest nameBaby Purple (#CA9BF7)
Black text9.32:1
White text2.25:1

Values

HEX#C798FC
RGBrgb(199, 152, 252)
HSLhsl(268, 94%, 79%)
OKLCHoklch(76.1% 0.147 304.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 #C798FC 2.25:1 Fails Lc -49.1 Large or bold text, headings
Black text on #C798FC 9.32:1 AAA Lc 59.7 Large or bold text, headings
#C798FC text on white 2.25:1 Fails Lc 44.3 Non-text elements, placeholder text
#C798FC text on black 9.32:1 AAA Lc -57.9 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 300.

  1. Step 50

    50

    #F8F3FF

    oklch(97.1% 0.017 304.8)

  2. Step 100

    100

    #EFE4FF

    oklch(93.6% 0.038 304.1)

  3. Step 200

    200

    #E3CEFF

    oklch(88.4% 0.07 304.5)

  4. Step 300

    300 (this color)

    #C798FC

    oklch(76.1% 0.147 304.8)

  5. Step 400

    400

    #BD7CFF

    oklch(70.8% 0.192 304.9)

  6. Step 500

    500

    #AE4EFF

    oklch(63.1% 0.25 305)

  7. Step 600

    600

    #9C00F6

    oklch(55.5% 0.289 304.6)

  8. Step 700

    700

    #8400D0

    oklch(49.1% 0.255 304.9)

  9. Step 800

    800

    #6D00AD

    oklch(42.8% 0.222 304.9)

  10. Step 900

    900

    #5B0192

    oklch(37.8% 0.196 304.8)

  11. Step 950

    950

    #350A55

    oklch(27% 0.124 305)

Export this scale for Tailwind in the Tailwind colors tool

#C798FC 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)#81ABFF0.101
Deuteranopia (no green cones)#8BADF90.094
Tritanopia (no blue cones)#BFA8BE0.111
Achromatopsia (no color)#ADADAD0.147

Harmonies

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

Complementary

The opposite hue (180°).

  • #C798FC

    #C798FC

    oklch(76.1% 0.147 304.8)

  • #9DC150

    #9DC150

    oklch(76.1% 0.146 124.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C798FC

    #C798FC

    oklch(76.1% 0.147 304.8)

  • #9BABFF

    #9BABFF

    oklch(76.2% 0.122 274.9)

  • #EA8CD7

    #EA8CD7

    oklch(76.2% 0.147 334.7)

Open the analogous palette in the generator

Split complementary

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

  • #C798FC

    #C798FC

    oklch(76.1% 0.147 304.8)

  • #CFAF26

    #CFAF26

    oklch(76.1% 0.147 94.7)

  • #57CC87

    #57CC87

    oklch(76% 0.146 154.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C798FC

    #C798FC

    oklch(76.1% 0.147 304.8)

  • #F19C3D

    #F19C3D

    oklch(76.3% 0.147 64.8)

  • #00CDBC

    #00CDBC

    oklch(76.2% 0.135 184.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C798FC

    #C798FC

    oklch(76.1% 0.147 304.8)

  • #FF8D71

    #FF8D71

    oklch(76.1% 0.144 34.8)

  • #9DC150

    #9DC150

    oklch(76.1% 0.146 124.6)

  • #00C6E6

    #00C6E6

    oklch(76.1% 0.134 214.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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