#CB7FEA#CB7FEA

#CB7FEA is a light, vivid purple. Relative luminance 0.338; OKLCH L 71.6% C 0.168 H 315.5°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#CB7FEA
RGBrgb(203, 127, 234)
HSLhsl(283, 72%, 71%)
HSVhsv(283, 46%, 92%)
CMYKcmyk(13.2%, 45.7%, 0%, 8.2%)
CIE-LABlab(64.82, 47.23, -42.53)
CIE-LCHlch(64.82, 63.55, 318.00°)
OKLaboklab(71.61% 0.12 -0.1179)
OKLCHoklch(71.61% 0.168 315.5)
XYZxyz(47.0670, 33.8170, 81.8739)
Luminance0.3382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7FEA #9EEA7F
analogous
#957FEA #CB7FEA #EA7FD3
triadic
#CB7FEA #EACB7F #7FEACB
tetradic
#CB7FEA #EA957F #9EEA7F #7FD3EA
square
#CB7FEA #EA957F #9EEA7F #7FD3EA
split-complementary
#CB7FEA #D3EA7F #7FEA95
monochromatic
#9B22CD #B64AE1 #CB7FEA #E0B4F3 #F4E5FB

Accessibility & contrast

On white

2.71
#CB7FEA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#CB7FEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7FEA
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7FEA#FFFFFF#000000##000000
##CB7FEA1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B99EE
Deuteranopia (green-blind)
#809FE7
Tritanopia (blue-blind)
#C98EAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cb7fea;
/* rgb */ color: rgb(203, 127, 234);
/* oklch */ color: oklch(71.6% 0.168 315.5);
Tailwind
colors: {
  custom: {
    50: '#dda6f1',
    500: '#cb7fea',
    950: '#000000',
  },
}
SCSS
$custom: #cb7fea;
$custom-light: #dda6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7fea",
  "rgb": {
    "r": 203,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 282.617,
    "s": 71.812,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71611,
    "c": 0.16826,
    "h": 315.5
  },
  "luminance": 0.33816
}

Semantic roles & 50–950 ramp

primary
#CB7FEA
secondary
#DCF1D4
accent
#D4124A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CB7FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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