#CD81F9#CD81F9

#CD81F9 is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.9% C 0.182 H 311.9°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#CD81F9
RGBrgb(205, 129, 249)
HSLhsl(278, 91%, 74%)
HSVhsv(278, 48%, 98%)
CMYKcmyk(17.7%, 48.2%, 0%, 2.4%)
CIE-LABlab(66.15, 49.86, -48.67)
CIE-LCHlch(66.15, 69.68, 315.69°)
OKLaboklab(72.88% 0.1217 -0.1357)
OKLCHoklch(72.88% 0.182 311.9)
XYZxyz(50.1230, 35.5202, 93.8198)
Luminance0.3552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81F9 #ADF981
analogous
#9181F9 #CD81F9 #F981E9
triadic
#CD81F9 #F9CD81 #81F9CD
tetradic
#CD81F9 #F99181 #ADF981 #81E9F9
square
#CD81F9 #F99181 #ADF981 #81E9F9
split-complementary
#CD81F9 #E9F981 #81F991
monochromatic
#9F0CF3 #B647F6 #CD81F9 #E4BBFC #F3E2FE

Accessibility & contrast

On white

2.59
#CD81F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#CD81F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81F9
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81F9#FFFFFF#000000##000000
##CD81F91.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#659DFD
Deuteranopia (green-blind)
#7BA2F6
Tritanopia (blue-blind)
#C894B2
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cd81f9;
/* rgb */ color: rgb(205, 129, 249);
/* oklch */ color: oklch(72.9% 0.182 311.9);
Tailwind
colors: {
  custom: {
    50: '#dea7fc',
    500: '#cd81f9',
    950: '#000000',
  },
}
SCSS
$custom: #cd81f9;
$custom-light: #dea7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81f9",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 249
  },
  "hsl": {
    "h": 278,
    "s": 90.909,
    "l": 74.118
  },
  "oklch": {
    "l": 0.72884,
    "c": 0.18224,
    "h": 311.9
  },
  "luminance": 0.35519
}

Semantic roles & 50–950 ramp

primary
#CD81F9
secondary
#E1F6D5
accent
#E60054
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CD81F9

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

Preview Lab → · Contrast checker → · Palette generator →

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