#CB97DC#CB97DC

#CB97DC is a light, moderate purple. Relative luminance 0.400; OKLCH L 74.9% C 0.112 H 317.6°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#CB97DC
RGBrgb(203, 151, 220)
HSLhsl(285, 50%, 73%)
HSVhsv(285, 31%, 86%)
CMYKcmyk(7.7%, 31.4%, 0%, 13.7%)
CIE-LABlab(69.47, 31.46, -27.57)
CIE-LCHlch(69.47, 41.83, 318.77°)
OKLaboklab(74.93% 0.0826 -0.0753)
OKLCHoklch(74.93% 0.112 317.6)
XYZxyz(48.6116, 39.9981, 72.8559)
Luminance0.4000 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97DC #A8DC97
analogous
#A897DC #CB97DC #DC97CB
triadic
#CB97DC #DCCB97 #97DCCB
tetradic
#CB97DC #DCA897 #A8DC97 #97CBDC
square
#CB97DC #DCA897 #A8DC97 #97CBDC
split-complementary
#CB97DC #CBDC97 #97DCA8
monochromatic
#9C3FBA #B469CD #CB97DC #E2C5EB #F4E8F7

Accessibility & contrast

On white

2.33
#CB97DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#CB97DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97DC
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97DC#FFFFFF#000000##000000
##CB97DC1.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA6DF
Deuteranopia (green-blind)
#9AABDA
Tritanopia (blue-blind)
#CB9FB0
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #cb97dc;
/* rgb */ color: rgb(203, 151, 220);
/* oklch */ color: oklch(74.9% 0.112 317.6);
Tailwind
colors: {
  custom: {
    50: '#dbb6e7',
    500: '#cb97dc',
    950: '#000000',
  },
}
SCSS
$custom: #cb97dc;
$custom-light: #dbb6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97dc",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 285.217,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.74925,
    "c": 0.11174,
    "h": 317.6
  },
  "luminance": 0.39997
}

Semantic roles & 50–950 ramp

primary
#CB97DC
secondary
#E1EEDD
accent
#BD294D
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CB97DC

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

Preview Lab → · Contrast checker → · Palette generator →

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