#C798FC#C798FC

#C798FC is a light, vivid violet. Relative luminance 0.416; OKLCH L 76.1% C 0.147 H 304.8°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#C798FC
RGBrgb(199, 152, 252)
HSLhsl(268, 94%, 79%)
HSVhsv(268, 40%, 99%)
CMYKcmyk(21%, 39.7%, 0%, 1.2%)
CIE-LABlab(70.61, 36.52, -43.34)
CIE-LCHlch(70.61, 56.68, 310.12°)
OKLaboklab(76.13% 0.0837 -0.1205)
OKLCHoklch(76.13% 0.147 304.8)
XYZxyz(52.3485, 41.6271, 97.3536)
Luminance0.4163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798FC #CDFC98
analogous
#989BFC #C798FC #F998FC
triadic
#C798FC #FCC798 #98FCC7
tetradic
#C798FC #FC989B #CDFC98 #98FCF9
square
#C798FC #FC989B #CDFC98 #98FCF9
split-complementary
#C798FC #FCF998 #9BFC98
monochromatic
#8621F9 #A75DFA #C798FC #E7D3FE #EFE1FE

Accessibility & contrast

On white

2.25
#C798FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#C798FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798FC
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798FC#FFFFFF#000000##000000
##C798FC1.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ABFF
Deuteranopia (green-blind)
#8BADF9
Tritanopia (blue-blind)
#BFA8BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #c798fc;
/* rgb */ color: rgb(199, 152, 252);
/* oklch */ color: oklch(76.1% 0.147 304.8);
Tailwind
colors: {
  custom: {
    50: '#d9b7fd',
    500: '#c798fc',
    950: '#000000',
  },
}
SCSS
$custom: #c798fc;
$custom-light: #d9b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#c798fc",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 268.2,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76133,
    "c": 0.14671,
    "h": 304.8
  },
  "luminance": 0.41627
}

Semantic roles & 50–950 ramp

primary
#C798FC
secondary
#E7F6D5
accent
#E6007A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C798FC

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#C798FC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva