#CD81FB#CD81FB

#CD81FB is a light, vivid violet. Relative luminance 0.356; OKLCH L 73.0% C 0.184 H 311.4°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#CD81FB
RGBrgb(205, 129, 251)
HSLhsl(277, 94%, 75%)
HSVhsv(277, 49%, 98%)
CMYKcmyk(18.3%, 48.6%, 0%, 1.6%)
CIE-LABlab(66.25, 50.28, -49.62)
CIE-LCHlch(66.25, 70.64, 315.38°)
OKLaboklab(72.99% 0.1219 -0.1384)
OKLCHoklch(72.99% 0.184 311.4)
XYZxyz(50.4366, 35.6457, 95.4714)
Luminance0.3564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81FB #AFFB81
analogous
#9081FB #CD81FB #FB81EC
triadic
#CD81FB #FBCD81 #81FBCD
tetradic
#CD81FB #FB9081 #AFFB81 #81ECFB
square
#CD81FB #FB9081 #AFFB81 #81ECFB
split-complementary
#CD81FB #ECFB81 #81FB90
monochromatic
#9E0AF7 #B546F9 #CD81FB #E5BCFD #F3E1FE

Accessibility & contrast

On white

2.58
#CD81FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#CD81FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81FB
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81FB#FFFFFF#000000##000000
##CD81FB1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#649DFF
Deuteranopia (green-blind)
#7AA3F8
Tritanopia (blue-blind)
#C895B2
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cd81fb;
/* rgb */ color: rgb(205, 129, 251);
/* oklch */ color: oklch(73.0% 0.184 311.4);
Tailwind
colors: {
  custom: {
    50: '#dea7fd',
    500: '#cd81fb',
    950: '#000000',
  },
}
SCSS
$custom: #cd81fb;
$custom-light: #dea7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81fb",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 251
  },
  "hsl": {
    "h": 277.377,
    "s": 93.846,
    "l": 74.51
  },
  "oklch": {
    "l": 0.72987,
    "c": 0.18444,
    "h": 311.4
  },
  "luminance": 0.35645
}

Semantic roles & 50–950 ramp

primary
#CD81FB
secondary
#E1F6D5
accent
#E60057
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CD81FB

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

Preview Lab → · Contrast checker → · Palette generator →

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