#CB97EC#CB97EC

#CB97EC is a light, vivid violet. Relative luminance 0.409; OKLCH L 75.6% C 0.130 H 311.6°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#CB97EC
RGBrgb(203, 151, 236)
HSLhsl(277, 69%, 76%)
HSVhsv(277, 36%, 93%)
CMYKcmyk(14%, 36%, 0%, 7.5%)
CIE-LABlab(70.10, 34.75, -35.39)
CIE-LCHlch(70.10, 49.60, 314.48°)
OKLaboklab(75.61% 0.0865 -0.0975)
OKLCHoklch(75.61% 0.13 311.6)
XYZxyz(50.8329, 40.8866, 84.5547)
Luminance0.4089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97EC #B8EC97
analogous
#A097EC #CB97EC #EC97E2
triadic
#CB97EC #ECCB97 #97ECCB
tetradic
#CB97EC #ECA097 #B8EC97 #97E2EC
square
#CB97EC #ECA097 #B8EC97 #97E2EC
split-complementary
#CB97EC #E2EC97 #97ECA0
monochromatic
#9730D9 #B163E3 #CB97EC #E5CBF5 #F2E5FA

Accessibility & contrast

On white

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

On black

9.18
#CB97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97EC
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97EC#FFFFFF#000000##000000
##CB97EC1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A9EF
Deuteranopia (green-blind)
#94ACEA
Tritanopia (blue-blind)
#C8A3B7
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cb97ec;
/* rgb */ color: rgb(203, 151, 236);
/* oklch */ color: oklch(75.6% 0.130 311.6);
Tailwind
colors: {
  custom: {
    50: '#dcb6f2',
    500: '#cb97ec',
    950: '#000000',
  },
}
SCSS
$custom: #cb97ec;
$custom-light: #dcb6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97ec",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 276.706,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75609,
    "c": 0.13034,
    "h": 311.6
  },
  "luminance": 0.40886
}

Semantic roles & 50–950 ramp

primary
#CB97EC
secondary
#E3F2D9
accent
#D1145E
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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