#CB7EEC#CB7EEC

#CB7EEC is a light, vivid purple. Relative luminance 0.337; OKLCH L 71.6% C 0.172 H 315.0°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#CB7EEC
RGBrgb(203, 126, 236)
HSLhsl(282, 74%, 71%)
HSVhsv(282, 47%, 93%)
CMYKcmyk(14%, 46.6%, 0%, 7.5%)
CIE-LABlab(64.70, 48.16, -43.81)
CIE-LCHlch(64.70, 65.11, 317.71°)
OKLaboklab(71.56% 0.1217 -0.1216)
OKLCHoklch(71.56% 0.172 315)
XYZxyz(47.2274, 33.6756, 83.3528)
Luminance0.3367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7EEC #9FEC7E
analogous
#947EEC #CB7EEC #EC7ED6
triadic
#CB7EEC #ECCB7E #7EECCB
tetradic
#CB7EEC #EC947E #9FEC7E #7ED6EC
square
#CB7EEC #EC947E #9FEC7E #7ED6EC
split-complementary
#CB7EEC #D6EC7E #7EEC94
monochromatic
#9B1FD1 #B549E4 #CB7EEC #E1B3F4 #F4E4FB

Accessibility & contrast

On white

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

On black

7.73
#CB7EEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7EEC
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7EEC#FFFFFF#000000##000000
##CB7EEC1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6898F0
Deuteranopia (green-blind)
#7E9FE9
Tritanopia (blue-blind)
#C98EAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cb7eec;
/* rgb */ color: rgb(203, 126, 236);
/* oklch */ color: oklch(71.6% 0.172 315.0);
Tailwind
colors: {
  custom: {
    50: '#dda5f2',
    500: '#cb7eec',
    950: '#000000',
  },
}
SCSS
$custom: #cb7eec;
$custom-light: #dda5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7eec",
  "rgb": {
    "r": 203,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 282,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.71557,
    "c": 0.17205,
    "h": 315
  },
  "luminance": 0.33674
}

Semantic roles & 50–950 ramp

primary
#CB7EEC
secondary
#DDF2D4
accent
#D60F4B
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CB7EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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