#C798FE#C798FE

#C798FE is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.2% C 0.149 H 304.3°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#C798FE
RGBrgb(199, 152, 254)
HSLhsl(268, 98%, 80%)
HSVhsv(268, 40%, 100%)
CMYKcmyk(21.7%, 40.2%, 0%, 0.4%)
CIE-LABlab(70.70, 36.97, -44.29)
CIE-LCHlch(70.70, 57.69, 309.85°)
OKLaboklab(76.23% 0.0841 -0.1232)
OKLCHoklch(76.23% 0.149 304.3)
XYZxyz(52.6671, 41.7545, 99.0315)
Luminance0.4175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798FE #CFFE98
analogous
#989CFE #C798FE #FA98FE
triadic
#C798FE #FEC798 #98FEC7
tetradic
#C798FE #FE989C #CFFE98 #98FEFA
square
#C798FE #FE989C #CFFE98 #98FEFA
split-complementary
#C798FE #FEFA98 #9CFE98
monochromatic
#851FFD #A65BFD #C798FE #E8D5FF #EFE1FF

Accessibility & contrast

On white

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

On black

9.35
#C798FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798FE
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798FE#FFFFFF#000000##000000
##C798FE1.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c798fe;
/* rgb */ color: rgb(199, 152, 254);
/* oklch */ color: oklch(76.2% 0.149 304.3);
Tailwind
colors: {
  custom: {
    50: '#d9b7ff',
    500: '#c798fe',
    950: '#000000',
  },
}
SCSS
$custom: #c798fe;
$custom-light: #d9b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#c798fe",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 267.647,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76229,
    "c": 0.14918,
    "h": 304.3
  },
  "luminance": 0.41754
}

Semantic roles & 50–950 ramp

primary
#C798FE
secondary
#E7F7D4
accent
#E6007C
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C798FE

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

Preview Lab → · Contrast checker → · Palette generator →

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