#CB97FB#CB97FB

#CB97FB is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.3% C 0.148 H 307.1°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#CB97FB
RGBrgb(203, 151, 251)
HSLhsl(271, 93%, 79%)
HSVhsv(271, 40%, 98%)
CMYKcmyk(19.1%, 39.8%, 0%, 1.6%)
CIE-LABlab(70.73, 37.98, -42.59)
CIE-LCHlch(70.73, 57.06, 311.73°)
OKLaboklab(76.3% 0.0896 -0.1182)
OKLCHoklch(76.3% 0.148 307.1)
XYZxyz(53.1044, 41.7952, 96.5178)
Luminance0.4179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97FB #C7FB97
analogous
#9997FB #CB97FB #FB97F9
triadic
#CB97FB #FBCB97 #97FBCB
tetradic
#CB97FB #FB9997 #C7FB97 #97F9FB
square
#CB97FB #FB9997 #C7FB97 #97F9FB
split-complementary
#CB97FB #F9FB97 #97FB99
monochromatic
#9021F6 #AE5CF9 #CB97FB #E8D2FD #F0E2FE

Accessibility & contrast

On white

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

On black

9.36
#CB97FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97FB
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97FB#FFFFFF#000000##000000
##CB97FB1.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ABFF
Deuteranopia (green-blind)
#8DAEF8
Tritanopia (blue-blind)
#C4A6BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cb97fb;
/* rgb */ color: rgb(203, 151, 251);
/* oklch */ color: oklch(76.3% 0.148 307.1);
Tailwind
colors: {
  custom: {
    50: '#dcb6fd',
    500: '#cb97fb',
    950: '#000000',
  },
}
SCSS
$custom: #cb97fb;
$custom-light: #dcb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97fb",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 271.2,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76296,
    "c": 0.1483,
    "h": 307.1
  },
  "luminance": 0.41795
}

Semantic roles & 50–950 ramp

primary
#CB97FB
secondary
#E5F6D5
accent
#E6006E
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CB97FB

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

Preview Lab → · Contrast checker → · Palette generator →

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