#CB97FC#CB97FC

#CB97FC is a light, vivid violet. Relative luminance 0.419; OKLCH L 76.3% C 0.149 H 306.9°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#CB97FC
RGBrgb(203, 151, 252)
HSLhsl(271, 94%, 79%)
HSVhsv(271, 40%, 99%)
CMYKcmyk(19.4%, 40.1%, 0%, 1.2%)
CIE-LABlab(70.77, 38.20, -43.06)
CIE-LCHlch(70.77, 57.57, 311.57°)
OKLaboklab(76.34% 0.0897 -0.1196)
OKLCHoklch(76.34% 0.15 306.9)
XYZxyz(53.2624, 41.8584, 97.3502)
Luminance0.4186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97FC #C8FC97
analogous
#9997FC #CB97FC #FC97FB
triadic
#CB97FC #FCCB97 #97FCCB
tetradic
#CB97FC #FC9997 #C8FC97 #97FBFC
square
#CB97FC #FC9997 #C8FC97 #97FBFC
split-complementary
#CB97FC #FBFC97 #97FC99
monochromatic
#9020F9 #AD5CFA #CB97FC #E9D2FE #F0E1FE

Accessibility & contrast

On white

2.24
#CB97FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#CB97FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97FC
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97FC#FFFFFF#000000##000000
##CB97FC1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cb97fc;
/* rgb */ color: rgb(203, 151, 252);
/* oklch */ color: oklch(76.3% 0.149 306.9);
Tailwind
colors: {
  custom: {
    50: '#dcb6fd',
    500: '#cb97fc',
    950: '#000000',
  },
}
SCSS
$custom: #cb97fc;
$custom-light: #dcb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97fc",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 270.891,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76343,
    "c": 0.1495,
    "h": 306.9
  },
  "luminance": 0.41858
}

Semantic roles & 50–950 ramp

primary
#CB97FC
secondary
#E5F6D5
accent
#E6006F
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CB97FC

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

Preview Lab → · Contrast checker → · Palette generator →

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