#CB5AFE#CB5AFE

#CB5AFE is a light, highly saturated purple. Relative luminance 0.272; OKLCH L 67.8% C 0.243 H 313.5°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#CB5AFE
RGBrgb(203, 90, 254)
HSLhsl(281, 99%, 67%)
HSVhsv(281, 65%, 100%)
CMYKcmyk(20.1%, 64.6%, 0%, 0.4%)
CIE-LABlab(59.13, 69.22, -62.62)
CIE-LCHlch(59.13, 93.34, 317.87°)
OKLaboklab(67.78% 0.1674 -0.1762)
OKLCHoklch(67.78% 0.243 313.5)
XYZxyz(46.1711, 27.1660, 96.5581)
Luminance0.2717 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB5AFE #8DFE5A
analogous
#795AFE #CB5AFE #FE5ADF
triadic
#CB5AFE #FECB5A #5AFECB
tetradic
#CB5AFE #FE795A #8DFE5A #5ADFFE
square
#CB5AFE #FE795A #8DFE5A #5ADFFE
split-complementary
#CB5AFE #DFFE5A #5AFE79
monochromatic
#9801DC #B81DFE #CB5AFE #DE97FE #F1D4FF

Accessibility & contrast

On white

3.26
#CB5AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#CB5AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB5AFE
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB5AFE#FFFFFF#000000##000000
##CB5AFE1.003.266.436.43
#FFFFFF3.261.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0088FF
Deuteranopia (green-blind)
#5191FA
Tritanopia (blue-blind)
#C67AA5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #cb5afe;
/* rgb */ color: rgb(203, 90, 254);
/* oklch */ color: oklch(67.8% 0.243 313.5);
Tailwind
colors: {
  custom: {
    50: '#df90ff',
    500: '#cb5afe',
    950: '#000000',
  },
}
SCSS
$custom: #cb5afe;
$custom-light: #df90ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb5afe",
  "rgb": {
    "r": 203,
    "g": 90,
    "b": 254
  },
  "hsl": {
    "h": 281.341,
    "s": 98.795,
    "l": 67.451
  },
  "oklch": {
    "l": 0.67777,
    "c": 0.24306,
    "h": 313.5
  },
  "luminance": 0.27165
}

Semantic roles & 50–950 ramp

primary
#CB5AFE
secondary
#D0F4C0
accent
#E60047
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D18
muted
#847E86

Preview Lab

Preview with #CB5AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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