#CB7ED8#CB7ED8

#CB7ED8 is a light, vivid purple. Relative luminance 0.326; OKLCH L 70.6% C 0.151 H 321.6°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#CB7ED8
RGBrgb(203, 126, 216)
HSLhsl(291, 54%, 67%)
HSVhsv(291, 42%, 85%)
CMYKcmyk(6%, 41.7%, 0%, 15.3%)
CIE-LABlab(63.82, 44.16, -34.09)
CIE-LCHlch(63.82, 55.78, 322.33°)
OKLaboklab(70.6% 0.1183 -0.0936)
OKLCHoklch(70.6% 0.151 321.6)
XYZxyz(44.4827, 32.5777, 68.8974)
Luminance0.3258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7ED8 #8BD87E
analogous
#9E7ED8 #CB7ED8 #D87EB8
triadic
#CB7ED8 #D8CB7E #7ED8CB
tetradic
#CB7ED8 #D89E7E #8BD87E #7EB8D8
square
#CB7ED8 #D89E7E #8BD87E #7EB8D8
split-complementary
#CB7ED8 #B8D87E #7ED89E
monochromatic
#9833A9 #B84FCA #CB7ED8 #DEADE6 #F1DCF4

Accessibility & contrast

On white

2.79
#CB7ED8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#CB7ED8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7ED8
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7ED8#FFFFFF#000000##000000
##CB7ED81.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7395DB
Deuteranopia (green-blind)
#879ED5
Tritanopia (blue-blind)
#CD89A1
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cb7ed8;
/* rgb */ color: rgb(203, 126, 216);
/* oklch */ color: oklch(70.6% 0.151 321.6);
Tailwind
colors: {
  custom: {
    50: '#dca5e4',
    500: '#cb7ed8',
    950: '#000000',
  },
}
SCSS
$custom: #cb7ed8;
$custom-light: #dca5e4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7ed8",
  "rgb": {
    "r": 203,
    "g": 126,
    "b": 216
  },
  "hsl": {
    "h": 291.333,
    "s": 53.571,
    "l": 67.059
  },
  "oklch": {
    "l": 0.70605,
    "c": 0.15088,
    "h": 321.6
  },
  "luminance": 0.32576
}

Semantic roles & 50–950 ramp

primary
#CB7ED8
secondary
#CFE7CB
accent
#C1243B
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#150F15
muted
#837F84

Preview Lab

Preview with #CB7ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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