#CD81FD#CD81FD

#CD81FD is a light, vivid violet. Relative luminance 0.358; OKLCH L 73.1% C 0.187 H 310.9°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#CD81FD
RGBrgb(205, 129, 253)
HSLhsl(277, 97%, 75%)
HSVhsv(277, 49%, 99%)
CMYKcmyk(19%, 49%, 0%, 0.8%)
CIE-LABlab(66.35, 50.71, -50.56)
CIE-LCHlch(66.35, 71.61, 315.08°)
OKLaboklab(73.09% 0.1221 -0.1411)
OKLCHoklch(73.09% 0.187 310.9)
XYZxyz(50.7535, 35.7724, 97.1406)
Luminance0.3577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81FD #B1FD81
analogous
#8F81FD #CD81FD #FD81EF
triadic
#CD81FD #FDCD81 #81FDCD
tetradic
#CD81FD #FD8F81 #B1FD81 #81EFFD
square
#CD81FD #FD8F81 #B1FD81 #81EFFD
split-complementary
#CD81FD #EFFD81 #81FD8F
monochromatic
#9D09FB #B545FC #CD81FD #E5BDFE #F3E1FF

Accessibility & contrast

On white

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

On black

8.15
#CD81FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81FD
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81FD#FFFFFF#000000##000000
##CD81FD1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#629EFF
Deuteranopia (green-blind)
#78A3FA
Tritanopia (blue-blind)
#C795B3
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cd81fd;
/* rgb */ color: rgb(205, 129, 253);
/* oklch */ color: oklch(73.1% 0.187 310.9);
Tailwind
colors: {
  custom: {
    50: '#dfa7fe',
    500: '#cd81fd',
    950: '#000000',
  },
}
SCSS
$custom: #cd81fd;
$custom-light: #dfa7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81fd",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 253
  },
  "hsl": {
    "h": 276.774,
    "s": 96.875,
    "l": 74.902
  },
  "oklch": {
    "l": 0.73091,
    "c": 0.18665,
    "h": 310.9
  },
  "luminance": 0.35771
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD81FD

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

Preview Lab → · Contrast checker → · Palette generator →

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