#CB97ED#CB97ED

#CB97ED is a light, vivid violet. Relative luminance 0.409; OKLCH L 75.7% C 0.132 H 311.2°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#CB97ED
RGBrgb(203, 151, 237)
HSLhsl(276, 70%, 76%)
HSVhsv(276, 36%, 93%)
CMYKcmyk(14.3%, 36.3%, 0%, 7.1%)
CIE-LABlab(70.14, 34.96, -35.87)
CIE-LCHlch(70.14, 50.09, 314.26°)
OKLaboklab(75.65% 0.0867 -0.0989)
OKLCHoklch(75.65% 0.132 311.2)
XYZxyz(50.9786, 40.9449, 85.3220)
Luminance0.4094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97ED #B9ED97
analogous
#A097ED #CB97ED #ED97E4
triadic
#CB97ED #EDCB97 #97EDCB
tetradic
#CB97ED #EDA097 #B9ED97 #97E4ED
square
#CB97ED #EDA097 #B9ED97 #97E4ED
split-complementary
#CB97ED #E4ED97 #97EDA0
monochromatic
#972FDB #B163E4 #CB97ED #E5CBF6 #F2E5FA

Accessibility & contrast

On white

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

On black

9.19
#CB97ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97ED
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97ED#FFFFFF#000000##000000
##CB97ED1.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A9F0
Deuteranopia (green-blind)
#93ADEA
Tritanopia (blue-blind)
#C8A3B7
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cb97ed;
/* rgb */ color: rgb(203, 151, 237);
/* oklch */ color: oklch(75.7% 0.132 311.2);
Tailwind
colors: {
  custom: {
    50: '#dcb6f3',
    500: '#cb97ed',
    950: '#000000',
  },
}
SCSS
$custom: #cb97ed;
$custom-light: #dcb6f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97ed",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 237
  },
  "hsl": {
    "h": 276.279,
    "s": 70.492,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75654,
    "c": 0.13152,
    "h": 311.2
  },
  "luminance": 0.40944
}

Semantic roles & 50–950 ramp

primary
#CB97ED
secondary
#E3F2D9
accent
#D3135F
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB97ED

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

Preview Lab → · Contrast checker → · Palette generator →

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