#C798FD#C798FD

#C798FD is a light, vivid violet. Relative luminance 0.417; OKLCH L 76.2% C 0.148 H 304.6°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#C798FD
RGBrgb(199, 152, 253)
HSLhsl(268, 96%, 79%)
HSVhsv(268, 40%, 99%)
CMYKcmyk(21.3%, 39.9%, 0%, 0.8%)
CIE-LABlab(70.66, 36.74, -43.82)
CIE-LCHlch(70.66, 57.18, 309.98°)
OKLaboklab(76.18% 0.0839 -0.1218)
OKLCHoklch(76.18% 0.148 304.6)
XYZxyz(52.5074, 41.6906, 98.1904)
Luminance0.4169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798FD #CEFD98
analogous
#989CFD #C798FD #FA98FD
triadic
#C798FD #FDC798 #98FDC7
tetradic
#C798FD #FD989C #CEFD98 #98FDFA
square
#C798FD #FD989C #CEFD98 #98FDFA
split-complementary
#C798FD #FDFA98 #9CFD98
monochromatic
#8620FB #A65CFC #C798FD #E8D4FE #EFE1FE

Accessibility & contrast

On white

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

On black

9.34
#C798FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798FD
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798FD#FFFFFF#000000##000000
##C798FD1.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ABFF
Deuteranopia (green-blind)
#8AADFA
Tritanopia (blue-blind)
#BEA8BF
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #c798fd;
/* rgb */ color: rgb(199, 152, 253);
/* oklch */ color: oklch(76.2% 0.148 304.6);
Tailwind
colors: {
  custom: {
    50: '#d9b7fe',
    500: '#c798fd',
    950: '#000000',
  },
}
SCSS
$custom: #c798fd;
$custom-light: #d9b7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#c798fd",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 267.921,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76181,
    "c": 0.14794,
    "h": 304.6
  },
  "luminance": 0.4169
}

Semantic roles & 50–950 ramp

primary
#C798FD
secondary
#E7F7D4
accent
#E6007B
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C798FD

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

Preview Lab → · Contrast checker → · Palette generator →

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