#CB56E7#CB56E7

#CB56E7 is a light, highly saturated purple. Relative luminance 0.251; OKLCH L 66.0% C 0.227 H 319.4°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#CB56E7
RGBrgb(203, 86, 231)
HSLhsl(288, 75%, 62%)
HSVhsv(288, 63%, 91%)
CMYKcmyk(12.1%, 62.8%, 0%, 9.4%)
CIE-LABlab(57.20, 66.48, -52.91)
CIE-LCHlch(57.20, 84.96, 321.48°)
OKLaboklab(65.96% 0.1724 -0.1478)
OKLCHoklch(65.96% 0.227 319.4)
XYZxyz(42.3783, 25.1235, 78.2029)
Luminance0.2512 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB56E7 #72E756
analogous
#8356E7 #CB56E7 #E756BA
triadic
#CB56E7 #E7CB56 #56E7CB
tetradic
#CB56E7 #E78356 #72E756 #56BAE7
square
#CB56E7 #E78356 #72E756 #56BAE7
split-complementary
#CB56E7 #BAE756 #56E783
monochromatic
#8E18AA #BB20DF #CB56E7 #DB8CEF #ECC1F6

Accessibility & contrast

On white

3.49
#CB56E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#CB56E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB56E7
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB56E7#FFFFFF#000000##000000
##CB56E71.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C81EB
Deuteranopia (green-blind)
#608DE3
Tritanopia (blue-blind)
#CB6F97
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #cb56e7;
/* rgb */ color: rgb(203, 86, 231);
/* oklch */ color: oklch(66.0% 0.227 319.4);
Tailwind
colors: {
  custom: {
    50: '#de8def',
    500: '#cb56e7',
    950: '#000000',
  },
}
SCSS
$custom: #cb56e7;
$custom-light: #de8def;
$custom-dark: #000000;
JSON
{
  "hex": "#cb56e7",
  "rgb": {
    "r": 203,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 288.414,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.65962,
    "c": 0.22707,
    "h": 319.4
  },
  "luminance": 0.25122
}

Semantic roles & 50–950 ramp

primary
#CB56E7
secondary
#BCE7B2
accent
#D70E35
background
#FEF9FE
surface
#FCF1FD
border
#D5CBD5
text
#160D16
muted
#847E84

Preview Lab

Preview with #CB56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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