#CD5AFB#CD5AFB

#CD5AFB is a light, highly saturated purple. Relative luminance 0.273; OKLCH L 67.8% C 0.241 H 314.8°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#CD5AFB
RGBrgb(205, 90, 251)
HSLhsl(283, 95%, 67%)
HSVhsv(283, 64%, 98%)
CMYKcmyk(18.3%, 64.1%, 0%, 1.6%)
CIE-LABlab(59.21, 69.06, -60.81)
CIE-LCHlch(59.21, 92.02, 318.64°)
OKLaboklab(67.84% 0.1699 -0.1709)
OKLCHoklch(67.84% 0.241 314.8)
XYZxyz(46.2428, 27.2580, 94.0735)
Luminance0.2726 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD5AFB #88FB5A
analogous
#7D5AFB #CD5AFB #FB5AD9
triadic
#CD5AFB #FBCD5A #5AFBCD
tetradic
#CD5AFB #FB7D5A #88FB5A #5AD9FB
square
#CD5AFB #FB7D5A #88FB5A #5AD9FB
split-complementary
#CD5AFB #D9FB5A #5AFB7D
monochromatic
#9A05D5 #BB1EFA #CD5AFB #DF96FC #F1D2FE

Accessibility & contrast

On white

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

On black

6.45
#CD5AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD5AFB
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD5AFB#FFFFFF#000000##000000
##CD5AFB1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A88FF
Deuteranopia (green-blind)
#5692F7
Tritanopia (blue-blind)
#C979A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #cd5afb;
/* rgb */ color: rgb(205, 90, 251);
/* oklch */ color: oklch(67.8% 0.241 314.8);
Tailwind
colors: {
  custom: {
    50: '#e090fd',
    500: '#cd5afb',
    950: '#000000',
  },
}
SCSS
$custom: #cd5afb;
$custom-light: #e090fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd5afb",
  "rgb": {
    "r": 205,
    "g": 90,
    "b": 251
  },
  "hsl": {
    "h": 282.857,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.67836,
    "c": 0.24096,
    "h": 314.8
  },
  "luminance": 0.27256
}

Semantic roles & 50–950 ramp

primary
#CD5AFB
secondary
#CDF2BF
accent
#E60042
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D18
muted
#847E86

Preview Lab

Preview with #CD5AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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