#CB5AFB#CB5AFB

#CB5AFB is a light, highly saturated purple. Relative luminance 0.270; OKLCH L 67.6% C 0.240 H 314.2°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#CB5AFB
RGBrgb(203, 90, 251)
HSLhsl(282, 95%, 67%)
HSVhsv(282, 64%, 98%)
CMYKcmyk(19.1%, 64.1%, 0%, 1.6%)
CIE-LABlab(58.95, 68.63, -61.24)
CIE-LCHlch(58.95, 91.98, 318.25°)
OKLaboklab(67.59% 0.1675 -0.1722)
OKLCHoklch(67.59% 0.24 314.2)
XYZxyz(45.6944, 26.9753, 94.0478)
Luminance0.2697 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB5AFB #8AFB5A
analogous
#7B5AFB #CB5AFB #FB5ADA
triadic
#CB5AFB #FBCB5A #5AFBCB
tetradic
#CB5AFB #FB7B5A #8AFB5A #5ADAFB
square
#CB5AFB #FB7B5A #8AFB5A #5ADAFB
split-complementary
#CB5AFB #DAFB5A #5AFB7B
monochromatic
#9705D5 #B81EFA #CB5AFB #DE96FC #F1D2FE

Accessibility & contrast

On white

3.28
#CB5AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#CB5AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB5AFB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB5AFB#FFFFFF#000000##000000
##CB5AFB1.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0388FF
Deuteranopia (green-blind)
#5391F7
Tritanopia (blue-blind)
#C779A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #cb5afb;
/* rgb */ color: rgb(203, 90, 251);
/* oklch */ color: oklch(67.6% 0.240 314.2);
Tailwind
colors: {
  custom: {
    50: '#df90fd',
    500: '#cb5afb',
    950: '#000000',
  },
}
SCSS
$custom: #cb5afb;
$custom-light: #df90fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb5afb",
  "rgb": {
    "r": 203,
    "g": 90,
    "b": 251
  },
  "hsl": {
    "h": 282.112,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.67593,
    "c": 0.24023,
    "h": 314.2
  },
  "luminance": 0.26974
}

Semantic roles & 50–950 ramp

primary
#CB5AFB
secondary
#CEF2BF
accent
#E60044
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D18
muted
#847E86

Preview Lab

Preview with #CB5AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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