#CB7ECC#CB7ECC

#CB7ECC is a light, vivid purple. Relative luminance 0.320; OKLCH L 70.1% C 0.139 H 326.5°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#CB7ECC
RGBrgb(203, 126, 204)
HSLhsl(299, 43%, 65%)
HSVhsv(299, 38%, 80%)
CMYKcmyk(0.5%, 38.2%, 0%, 20%)
CIE-LABlab(63.33, 41.88, -28.13)
CIE-LCHlch(63.33, 50.45, 326.11°)
OKLaboklab(70.07% 0.1158 -0.0767)
OKLCHoklch(70.07% 0.139 326.5)
XYZxyz(42.9876, 31.9797, 61.0234)
Luminance0.3198 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7ECC #7FCC7E
analogous
#A47ECC #CB7ECC #CC7EA6
triadic
#CB7ECC #CCCB7E #7ECCCB
tetradic
#CB7ECC #CCA47E #7FCC7E #7EA6CC
square
#CB7ECC #CCA47E #7FCC7E #7EA6CC
split-complementary
#CB7ECC #A6CC7E #7ECCA4
monochromatic
#943B95 #B952BB #CB7ECC #DDAADD #EED6EF

Accessibility & contrast

On white

2.84
#CB7ECC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.40
#CB7ECC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7ECC
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7ECC#FFFFFF#000000##000000
##CB7ECC1.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7893CF
Deuteranopia (green-blind)
#8C9DC9
Tritanopia (blue-blind)
#CF869C
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #cb7ecc;
/* rgb */ color: rgb(203, 126, 204);
/* oklch */ color: oklch(70.1% 0.139 326.5);
Tailwind
colors: {
  custom: {
    50: '#dca5db',
    500: '#cb7ecc',
    950: '#000000',
  },
}
SCSS
$custom: #cb7ecc;
$custom-light: #dca5db;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7ecc",
  "rgb": {
    "r": 203,
    "g": 126,
    "b": 204
  },
  "hsl": {
    "h": 299.231,
    "s": 43.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.70074,
    "c": 0.13884,
    "h": 326.5
  },
  "luminance": 0.31978
}

Semantic roles & 50–950 ramp

primary
#CB7ECC
secondary
#C6E0C6
accent
#B62F31
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#150F15
muted
#837F83

Preview Lab

Preview with #CB7ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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