#CD81FE#CD81FE

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

Color values

HEX#CD81FE
RGBrgb(205, 129, 254)
HSLhsl(276, 98%, 75%)
HSVhsv(276, 49%, 100%)
CMYKcmyk(19.3%, 49.2%, 0%, 0.4%)
CIE-LABlab(66.39, 50.92, -51.03)
CIE-LCHlch(66.39, 72.09, 314.94°)
OKLaboklab(73.14% 0.1222 -0.1425)
OKLCHoklch(73.14% 0.188 310.6)
XYZxyz(50.9132, 35.8363, 97.9817)
Luminance0.3584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81FE #B2FE81
analogous
#8E81FE #CD81FE #FE81F0
triadic
#CD81FE #FECD81 #81FECD
tetradic
#CD81FE #FE8E81 #B2FE81 #81F0FE
square
#CD81FE #FE8E81 #B2FE81 #81F0FE
split-complementary
#CD81FE #F0FE81 #81FE8E
monochromatic
#9D08FD #B544FE #CD81FE #E5BEFE #F3E1FF

Accessibility & contrast

On white

2.57
#CD81FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#CD81FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81FE
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81FE#FFFFFF#000000##000000
##CD81FE1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd81fe;
/* rgb */ color: rgb(205, 129, 254);
/* oklch */ color: oklch(73.1% 0.188 310.6);
Tailwind
colors: {
  custom: {
    50: '#dfa8ff',
    500: '#cd81fe',
    950: '#000000',
  },
}
SCSS
$custom: #cd81fe;
$custom-light: #dfa8ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81fe",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 254
  },
  "hsl": {
    "h": 276.48,
    "s": 98.425,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73143,
    "c": 0.18776,
    "h": 310.6
  },
  "luminance": 0.35835
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD81FE

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

Preview Lab → · Contrast checker → · Palette generator →

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