#CB97EE#CB97EE

#CB97EE is a light, vivid violet. Relative luminance 0.410; OKLCH L 75.7% C 0.133 H 310.9°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#CB97EE
RGBrgb(203, 151, 238)
HSLhsl(276, 72%, 76%)
HSVhsv(276, 37%, 93%)
CMYKcmyk(14.7%, 36.6%, 0%, 6.7%)
CIE-LABlab(70.18, 35.17, -36.36)
CIE-LCHlch(70.18, 50.59, 314.05°)
OKLaboklab(75.7% 0.0869 -0.1003)
OKLCHoklch(75.7% 0.133 310.9)
XYZxyz(51.1251, 41.0035, 86.0935)
Luminance0.4100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97EE #BAEE97
analogous
#A097EE #CB97EE #EE97E6
triadic
#CB97EE #EECB97 #97EECB
tetradic
#CB97EE #EEA097 #BAEE97 #97E6EE
square
#CB97EE #EEA097 #BAEE97 #97E6EE
split-complementary
#CB97EE #E6EE97 #97EEA0
monochromatic
#962EDD #B162E5 #CB97EE #E5CCF7 #F2E5FB

Accessibility & contrast

On white

2.28
#CB97EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#CB97EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97EE
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97EE#FFFFFF#000000##000000
##CB97EE1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A9F1
Deuteranopia (green-blind)
#93ADEB
Tritanopia (blue-blind)
#C7A3B8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cb97ee;
/* rgb */ color: rgb(203, 151, 238);
/* oklch */ color: oklch(75.7% 0.133 310.9);
Tailwind
colors: {
  custom: {
    50: '#dcb6f4',
    500: '#cb97ee',
    950: '#000000',
  },
}
SCSS
$custom: #cb97ee;
$custom-light: #dcb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97ee",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 275.862,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75698,
    "c": 0.13271,
    "h": 310.9
  },
  "luminance": 0.41003
}

Semantic roles & 50–950 ramp

primary
#CB97EE
secondary
#E3F2D9
accent
#D41260
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB97EE

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

Preview Lab → · Contrast checker → · Palette generator →

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