#CB97FD#CB97FD

#CB97FD is a light, vivid violet. Relative luminance 0.419; OKLCH L 76.4% C 0.151 H 306.6°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#CB97FD
RGBrgb(203, 151, 253)
HSLhsl(271, 96%, 79%)
HSVhsv(271, 40%, 99%)
CMYKcmyk(19.8%, 40.3%, 0%, 0.8%)
CIE-LABlab(70.82, 38.42, -43.54)
CIE-LCHlch(70.82, 58.07, 311.43°)
OKLaboklab(76.39% 0.0899 -0.1209)
OKLCHoklch(76.39% 0.151 306.6)
XYZxyz(53.4213, 41.9220, 98.1869)
Luminance0.4192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97FD #C9FD97
analogous
#9897FD #CB97FD #FD97FC
triadic
#CB97FD #FDCB97 #97FDCB
tetradic
#CB97FD #FD9897 #C9FD97 #97FCFD
square
#CB97FD #FD9897 #C9FD97 #97FCFD
split-complementary
#CB97FD #FCFD97 #97FD98
monochromatic
#8F1FFB #AD5BFC #CB97FD #E9D3FE #F0E1FE

Accessibility & contrast

On white

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

On black

9.38
#CB97FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97FD
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97FD#FFFFFF#000000##000000
##CB97FD1.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cb97fd;
/* rgb */ color: rgb(203, 151, 253);
/* oklch */ color: oklch(76.4% 0.151 306.6);
Tailwind
colors: {
  custom: {
    50: '#dcb6fe',
    500: '#cb97fd',
    950: '#000000',
  },
}
SCSS
$custom: #cb97fd;
$custom-light: #dcb6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97fd",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 270.588,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76391,
    "c": 0.15071,
    "h": 306.6
  },
  "luminance": 0.41922
}

Semantic roles & 50–950 ramp

primary
#CB97FD
secondary
#E5F7D4
accent
#E60071
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CB97FD

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

Preview Lab → · Contrast checker → · Palette generator →

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