#CB97FE#CB97FE

#CB97FE is a light, vivid violet. Relative luminance 0.420; OKLCH L 76.4% C 0.152 H 306.4°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#CB97FE
RGBrgb(203, 151, 254)
HSLhsl(270, 98%, 79%)
HSVhsv(270, 41%, 100%)
CMYKcmyk(20.1%, 40.6%, 0%, 0.4%)
CIE-LABlab(70.86, 38.64, -44.01)
CIE-LCHlch(70.86, 58.57, 311.28°)
OKLaboklab(76.44% 0.0901 -0.1223)
OKLCHoklch(76.44% 0.152 306.4)
XYZxyz(53.5810, 41.9859, 99.0281)
Luminance0.4199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97FE #CAFE97
analogous
#9897FE #CB97FE #FE97FE
triadic
#CB97FE #FECB97 #97FECB
tetradic
#CB97FE #FE9897 #CAFE97 #97FEFE
square
#CB97FE #FE9897 #CAFE97 #97FEFE
split-complementary
#CB97FE #FEFE97 #97FE98
monochromatic
#8E1EFD #AD5AFD #CB97FE #E9D4FF #F0E1FF

Accessibility & contrast

On white

2.23
#CB97FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#CB97FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97FE
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97FE#FFFFFF#000000##000000
##CB97FE1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FACFF
Deuteranopia (green-blind)
#8BAEFB
Tritanopia (blue-blind)
#C4A7BF
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cb97fe;
/* rgb */ color: rgb(203, 151, 254);
/* oklch */ color: oklch(76.4% 0.152 306.4);
Tailwind
colors: {
  custom: {
    50: '#dcb6ff',
    500: '#cb97fe',
    950: '#000000',
  },
}
SCSS
$custom: #cb97fe;
$custom-light: #dcb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97fe",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 270.291,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76439,
    "c": 0.15192,
    "h": 306.4
  },
  "luminance": 0.41985
}

Semantic roles & 50–950 ramp

primary
#CB97FE
secondary
#E5F7D4
accent
#E60072
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CB97FE

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

Preview Lab → · Contrast checker → · Palette generator →

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