#CB97EB#CB97EB

#CB97EB is a light, vivid violet. Relative luminance 0.408; OKLCH L 75.6% C 0.129 H 311.9°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#CB97EB
RGBrgb(203, 151, 235)
HSLhsl(277, 68%, 76%)
HSVhsv(277, 36%, 92%)
CMYKcmyk(13.6%, 35.7%, 0%, 7.8%)
CIE-LABlab(70.06, 34.54, -34.91)
CIE-LCHlch(70.06, 49.11, 314.70°)
OKLaboklab(75.57% 0.0862 -0.0961)
OKLCHoklch(75.57% 0.129 311.9)
XYZxyz(50.6880, 40.8287, 83.7916)
Luminance0.4083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97EB #B7EB97
analogous
#A197EB #CB97EB #EB97E1
triadic
#CB97EB #EBCB97 #97EBCB
tetradic
#CB97EB #EBA197 #B7EB97 #97E1EB
square
#CB97EB #EBA197 #B7EB97 #97E1EB
split-complementary
#CB97EB #E1EB97 #97EBA1
monochromatic
#9830D7 #B164E1 #CB97EB #E5CAF5 #F2E5FA

Accessibility & contrast

On white

2.29
#CB97EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#CB97EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97EB
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97EB#FFFFFF#000000##000000
##CB97EB1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A8EE
Deuteranopia (green-blind)
#94ACE9
Tritanopia (blue-blind)
#C8A3B6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cb97eb;
/* rgb */ color: rgb(203, 151, 235);
/* oklch */ color: oklch(75.6% 0.129 311.9);
Tailwind
colors: {
  custom: {
    50: '#dcb6f1',
    500: '#cb97eb',
    950: '#000000',
  },
}
SCSS
$custom: #cb97eb;
$custom-light: #dcb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97eb",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 277.143,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75565,
    "c": 0.12915,
    "h": 311.9
  },
  "luminance": 0.40828
}

Semantic roles & 50–950 ramp

primary
#CB97EB
secondary
#E3F2D9
accent
#D0165D
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB97EB

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

Preview Lab → · Contrast checker → · Palette generator →

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