#CF5AFB#CF5AFB

#CF5AFB is a light, highly saturated purple. Relative luminance 0.275; OKLCH L 68.1% C 0.242 H 315.5°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#CF5AFB
RGBrgb(207, 90, 251)
HSLhsl(284, 95%, 67%)
HSVhsv(284, 64%, 98%)
CMYKcmyk(17.5%, 64.1%, 0%, 1.6%)
CIE-LABlab(59.47, 69.50, -60.38)
CIE-LCHlch(59.47, 92.06, 319.02°)
OKLaboklab(68.08% 0.1723 -0.1695)
OKLCHoklch(68.08% 0.242 315.5)
XYZxyz(46.7981, 27.5444, 94.0995)
Luminance0.2754 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF5AFB #86FB5A
analogous
#7E5AFB #CF5AFB #FB5AD7
triadic
#CF5AFB #FBCF5A #5AFBCF
tetradic
#CF5AFB #FB7E5A #86FB5A #5AD7FB
square
#CF5AFB #FB7E5A #86FB5A #5AD7FB
split-complementary
#CF5AFB #D7FB5A #5AFB7E
monochromatic
#9D05D5 #BE1EFA #CF5AFB #E096FC #F2D2FE

Accessibility & contrast

On white

3.23
#CF5AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#CF5AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF5AFB
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF5AFB#FFFFFF#000000##000000
##CF5AFB1.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1088FF
Deuteranopia (green-blind)
#5892F7
Tritanopia (blue-blind)
#CC78A3
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #cf5afb;
/* rgb */ color: rgb(207, 90, 251);
/* oklch */ color: oklch(68.1% 0.242 315.5);
Tailwind
colors: {
  custom: {
    50: '#e190fd',
    500: '#cf5afb',
    950: '#000000',
  },
}
SCSS
$custom: #cf5afb;
$custom-light: #e190fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf5afb",
  "rgb": {
    "r": 207,
    "g": 90,
    "b": 251
  },
  "hsl": {
    "h": 283.602,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.6808,
    "c": 0.2417,
    "h": 315.5
  },
  "luminance": 0.27543
}

Semantic roles & 50–950 ramp

primary
#CF5AFB
secondary
#CDF2BF
accent
#E6003F
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160D18
muted
#847E86

Preview Lab

Preview with #CF5AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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