#CB97EF#CB97EF

#CB97EF is a light, vivid violet. Relative luminance 0.411; OKLCH L 75.7% C 0.134 H 310.6°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#CB97EF
RGBrgb(203, 151, 239)
HSLhsl(275, 73%, 76%)
HSVhsv(275, 37%, 94%)
CMYKcmyk(15.1%, 36.8%, 0%, 6.3%)
CIE-LABlab(70.22, 35.39, -36.84)
CIE-LCHlch(70.22, 51.08, 313.85°)
OKLaboklab(75.74% 0.0871 -0.1017)
OKLCHoklch(75.74% 0.134 310.6)
XYZxyz(51.2724, 41.0624, 86.8694)
Luminance0.4106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97EF #BBEF97
analogous
#9F97EF #CB97EF #EF97E7
triadic
#CB97EF #EFCB97 #97EFCB
tetradic
#CB97EF #EF9F97 #BBEF97 #97E7EF
square
#CB97EF #EF9F97 #BBEF97 #97E7EF
split-complementary
#CB97EF #E7EF97 #97EF9F
monochromatic
#962DDF #B062E7 #CB97EF #E6CCF7 #F2E4FB

Accessibility & contrast

On white

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

On black

9.21
#CB97EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97EF
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97EF#FFFFFF#000000##000000
##CB97EF1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A9F2
Deuteranopia (green-blind)
#92ADEC
Tritanopia (blue-blind)
#C7A3B8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cb97ef;
/* rgb */ color: rgb(203, 151, 239);
/* oklch */ color: oklch(75.7% 0.134 310.6);
Tailwind
colors: {
  custom: {
    50: '#dcb6f4',
    500: '#cb97ef',
    950: '#000000',
  },
}
SCSS
$custom: #cb97ef;
$custom-light: #dcb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97ef",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 275.455,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75743,
    "c": 0.1339,
    "h": 310.6
  },
  "luminance": 0.41062
}

Semantic roles & 50–950 ramp

primary
#CB97EF
secondary
#E3F3D8
accent
#D51061
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB97EF

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

Preview Lab → · Contrast checker → · Palette generator →

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