#CD81FC#CD81FC

#CD81FC is a light, vivid violet. Relative luminance 0.357; OKLCH L 73.0% C 0.186 H 311.1°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#CD81FC
RGBrgb(205, 129, 252)
HSLhsl(277, 95%, 75%)
HSVhsv(277, 49%, 99%)
CMYKcmyk(18.7%, 48.8%, 0%, 1.2%)
CIE-LABlab(66.30, 50.49, -50.09)
CIE-LCHlch(66.30, 71.12, 315.23°)
OKLaboklab(73.04% 0.122 -0.1398)
OKLCHoklch(73.04% 0.186 311.1)
XYZxyz(50.5946, 35.7089, 96.3038)
Luminance0.3571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81FC #B0FC81
analogous
#9081FC #CD81FC #FC81EE
triadic
#CD81FC #FCCD81 #81FCCD
tetradic
#CD81FC #FC9081 #B0FC81 #81EEFC
square
#CD81FC #FC9081 #B0FC81 #81EEFC
split-complementary
#CD81FC #EEFC81 #81FC90
monochromatic
#9E09F9 #B545FB #CD81FC #E5BDFD #F3E1FE

Accessibility & contrast

On white

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

On black

8.14
#CD81FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81FC
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81FC#FFFFFF#000000##000000
##CD81FC1.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#639DFF
Deuteranopia (green-blind)
#79A3F9
Tritanopia (blue-blind)
#C895B3
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cd81fc;
/* rgb */ color: rgb(205, 129, 252);
/* oklch */ color: oklch(73.0% 0.186 311.1);
Tailwind
colors: {
  custom: {
    50: '#dea7fe',
    500: '#cd81fc',
    950: '#000000',
  },
}
SCSS
$custom: #cd81fc;
$custom-light: #dea7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81fc",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 277.073,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.73039,
    "c": 0.18555,
    "h": 311.1
  },
  "luminance": 0.35708
}

Semantic roles & 50–950 ramp

primary
#CD81FC
secondary
#E1F7D4
accent
#E60058
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CD81FC

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

Preview Lab → · Contrast checker → · Palette generator →

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