#CB81FC#CB81FC

#CB81FC is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.8% C 0.185 H 310.3°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#CB81FC
RGBrgb(203, 129, 252)
HSLhsl(276, 95%, 75%)
HSVhsv(276, 49%, 99%)
CMYKcmyk(19.4%, 48.8%, 0%, 1.2%)
CIE-LABlab(66.08, 49.96, -50.45)
CIE-LCHlch(66.08, 71.00, 314.72°)
OKLaboklab(72.83% 0.1197 -0.1409)
OKLCHoklch(72.83% 0.185 310.3)
XYZxyz(50.0463, 35.4262, 96.2781)
Luminance0.3543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB81FC #B2FC81
analogous
#8E81FC #CB81FC #FC81EF
triadic
#CB81FC #FCCB81 #81FCCB
tetradic
#CB81FC #FC8E81 #B2FC81 #81EFFC
square
#CB81FC #FC8E81 #B2FC81 #81EFFC
split-complementary
#CB81FC #EFFC81 #81FC8E
monochromatic
#9A09F9 #B245FB #CB81FC #E4BDFD #F3E1FE

Accessibility & contrast

On white

2.60
#CB81FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#CB81FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB81FC
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB81FC#FFFFFF#000000##000000
##CB81FC1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#629DFF
Deuteranopia (green-blind)
#78A2F9
Tritanopia (blue-blind)
#C595B3
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cb81fc;
/* rgb */ color: rgb(203, 129, 252);
/* oklch */ color: oklch(72.8% 0.185 310.3);
Tailwind
colors: {
  custom: {
    50: '#dda7fe',
    500: '#cb81fc',
    950: '#000000',
  },
}
SCSS
$custom: #cb81fc;
$custom-light: #dda7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cb81fc",
  "rgb": {
    "r": 203,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 276.098,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.72828,
    "c": 0.18483,
    "h": 310.3
  },
  "luminance": 0.35425
}

Semantic roles & 50–950 ramp

primary
#CB81FC
secondary
#E2F7D4
accent
#E6005B
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CB81FC

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

Preview Lab → · Contrast checker → · Palette generator →

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