#CB7EEA#CB7EEA

#CB7EEA is a light, vivid purple. Relative luminance 0.336; OKLCH L 71.5% C 0.170 H 315.6°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#CB7EEA
RGBrgb(203, 126, 234)
HSLhsl(283, 72%, 71%)
HSVhsv(283, 46%, 92%)
CMYKcmyk(13.2%, 46.2%, 0%, 8.2%)
CIE-LABlab(64.61, 47.75, -42.85)
CIE-LCHlch(64.61, 64.16, 318.10°)
OKLaboklab(71.46% 0.1214 -0.1188)
OKLCHoklch(71.46% 0.17 315.6)
XYZxyz(46.9385, 33.5600, 81.8311)
Luminance0.3356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7EEA #9DEA7E
analogous
#957EEA #CB7EEA #EA7ED3
triadic
#CB7EEA #EACB7E #7EEACB
tetradic
#CB7EEA #EA957E #9DEA7E #7ED3EA
square
#CB7EEA #EA957E #9DEA7E #7ED3EA
split-complementary
#CB7EEA #D3EA7E #7EEA95
monochromatic
#9B21CC #B649E1 #CB7EEA #E0B3F3 #F4E5FB

Accessibility & contrast

On white

2.72
#CB7EEA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#CB7EEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7EEA
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7EEA#FFFFFF#000000##000000
##CB7EEA1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6998EE
Deuteranopia (green-blind)
#7F9FE7
Tritanopia (blue-blind)
#C98EA9
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cb7eea;
/* rgb */ color: rgb(203, 126, 234);
/* oklch */ color: oklch(71.5% 0.170 315.6);
Tailwind
colors: {
  custom: {
    50: '#dda5f1',
    500: '#cb7eea',
    950: '#000000',
  },
}
SCSS
$custom: #cb7eea;
$custom-light: #dda5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7eea",
  "rgb": {
    "r": 203,
    "g": 126,
    "b": 234
  },
  "hsl": {
    "h": 282.778,
    "s": 72,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71458,
    "c": 0.16989,
    "h": 315.6
  },
  "luminance": 0.33559
}

Semantic roles & 50–950 ramp

primary
#CB7EEA
secondary
#DCF1D3
accent
#D41149
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CB7EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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