#CB5AF7#CB5AF7

#CB5AF7 is a light, highly saturated purple. Relative luminance 0.267; OKLCH L 67.4% C 0.236 H 315.1°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#CB5AF7
RGBrgb(203, 90, 247)
HSLhsl(283, 91%, 66%)
HSVhsv(283, 64%, 97%)
CMYKcmyk(17.8%, 63.6%, 0%, 3.1%)
CIE-LABlab(58.72, 67.83, -59.40)
CIE-LCHlch(58.72, 90.16, 318.79°)
OKLaboklab(67.35% 0.1677 -0.1668)
OKLCHoklch(67.35% 0.236 315.1)
XYZxyz(45.0706, 26.7258, 90.7621)
Luminance0.2672 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB5AF7 #86F75A
analogous
#7C5AF7 #CB5AF7 #F75AD4
triadic
#CB5AF7 #F7CB5A #5AF7CB
tetradic
#CB5AF7 #F77C5A #86F75A #5AD4F7
square
#CB5AF7 #F77C5A #86F75A #5AD4F7
split-complementary
#CB5AF7 #D4F75A #5AF77C
monochromatic
#960ACD #B920F4 #CB5AF7 #DD94FA #F0CFFD

Accessibility & contrast

On white

3.31
#CB5AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#CB5AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB5AF7
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB5AF7#FFFFFF#000000##000000
##CB5AF71.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1687FC
Deuteranopia (green-blind)
#5790F3
Tritanopia (blue-blind)
#C877A1
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #cb5af7;
/* rgb */ color: rgb(203, 90, 247);
/* oklch */ color: oklch(67.4% 0.236 315.1);
Tailwind
colors: {
  custom: {
    50: '#df8ffa',
    500: '#cb5af7',
    950: '#000000',
  },
}
SCSS
$custom: #cb5af7;
$custom-light: #df8ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#cb5af7",
  "rgb": {
    "r": 203,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 283.185,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67352,
    "c": 0.23649,
    "h": 315.1
  },
  "luminance": 0.26724
}

Semantic roles & 50–950 ramp

primary
#CB5AF7
secondary
#CBF0BD
accent
#E60040
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CB5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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