#CE97FC#CE97FC

#CE97FC is a light, vivid violet. Relative luminance 0.423; OKLCH L 76.6% C 0.150 H 308.3°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#CE97FC
RGBrgb(206, 151, 252)
HSLhsl(273, 94%, 79%)
HSVhsv(273, 40%, 99%)
CMYKcmyk(18.3%, 40.1%, 0%, 1.2%)
CIE-LABlab(71.07, 39.05, -42.58)
CIE-LCHlch(71.07, 57.78, 312.52°)
OKLaboklab(76.63% 0.0932 -0.1181)
OKLCHoklch(76.63% 0.15 308.3)
XYZxyz(54.0876, 42.2839, 97.3888)
Luminance0.4228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE97FC #C5FC97
analogous
#9C97FC #CE97FC #FC97F8
triadic
#CE97FC #FCCE97 #97FCCE
tetradic
#CE97FC #FC9C97 #C5FC97 #97F8FC
square
#CE97FC #FC9C97 #C5FC97 #97F8FC
split-complementary
#CE97FC #F8FC97 #97FC9C
monochromatic
#9620F9 #B25CFA #CE97FC #EAD2FE #F1E1FE

Accessibility & contrast

On white

2.22
#CE97FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#CE97FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CE97FC
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE97FC#FFFFFF#000000##000000
##CE97FC1.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ACFF
Deuteranopia (green-blind)
#8EAFF9
Tritanopia (blue-blind)
#C8A6BE
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ce97fc;
/* rgb */ color: rgb(206, 151, 252);
/* oklch */ color: oklch(76.6% 0.150 308.3);
Tailwind
colors: {
  custom: {
    50: '#deb6fd',
    500: '#ce97fc',
    950: '#000000',
  },
}
SCSS
$custom: #ce97fc;
$custom-light: #deb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ce97fc",
  "rgb": {
    "r": 206,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 272.673,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76632,
    "c": 0.15047,
    "h": 308.3
  },
  "luminance": 0.42283
}

Semantic roles & 50–950 ramp

primary
#CE97FC
secondary
#E4F6D5
accent
#E60069
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CE97FC

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

Preview Lab → · Contrast checker → · Palette generator →

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