#CB97EA#CB97EA

#CB97EA is a light, vivid violet. Relative luminance 0.408; OKLCH L 75.5% C 0.128 H 312.2°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#CB97EA
RGBrgb(203, 151, 234)
HSLhsl(278, 66%, 75%)
HSVhsv(278, 35%, 92%)
CMYKcmyk(13.2%, 35.5%, 0%, 8.2%)
CIE-LABlab(70.02, 34.33, -34.42)
CIE-LCHlch(70.02, 48.61, 314.92°)
OKLaboklab(75.52% 0.086 -0.0948)
OKLCHoklch(75.52% 0.128 312.2)
XYZxyz(50.5440, 40.7711, 83.0329)
Luminance0.4077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97EA #B6EA97
analogous
#A197EA #CB97EA #EA97E0
triadic
#CB97EA #EACB97 #97EACB
tetradic
#CB97EA #EAA197 #B6EA97 #97E0EA
square
#CB97EA #EAA197 #B6EA97 #97E0EA
split-complementary
#CB97EA #E0EA97 #97EAA1
monochromatic
#9831D5 #B264E0 #CB97EA #E4CAF4 #F2E6FA

Accessibility & contrast

On white

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

On black

9.15
#CB97EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97EA
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97EA#FFFFFF#000000##000000
##CB97EA1.002.299.159.15
#FFFFFF2.291.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A8ED
Deuteranopia (green-blind)
#94ACE8
Tritanopia (blue-blind)
#C8A2B6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cb97ea;
/* rgb */ color: rgb(203, 151, 234);
/* oklch */ color: oklch(75.5% 0.128 312.2);
Tailwind
colors: {
  custom: {
    50: '#dcb6f1',
    500: '#cb97ea',
    950: '#000000',
  },
}
SCSS
$custom: #cb97ea;
$custom-light: #dcb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97ea",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 277.59,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75521,
    "c": 0.12797,
    "h": 312.2
  },
  "luminance": 0.4077
}

Semantic roles & 50–950 ramp

primary
#CB97EA
secondary
#E3F1DA
accent
#CE175C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CB97EA

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

Preview Lab → · Contrast checker → · Palette generator →

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