#CD81F8#CD81F8

#CD81F8 is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.8% C 0.181 H 312.1°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#CD81F8
RGBrgb(205, 129, 248)
HSLhsl(278, 89%, 74%)
HSVhsv(278, 48%, 97%)
CMYKcmyk(17.3%, 48%, 0%, 2.7%)
CIE-LABlab(66.10, 49.64, -48.20)
CIE-LCHlch(66.10, 69.20, 315.84°)
OKLaboklab(72.83% 0.1216 -0.1343)
OKLCHoklch(72.83% 0.181 312.1)
XYZxyz(49.9674, 35.4580, 93.0006)
Luminance0.3546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81F8 #ACF881
analogous
#9281F8 #CD81F8 #F881E8
triadic
#CD81F8 #F8CD81 #81F8CD
tetradic
#CD81F8 #F89281 #ACF881 #81E8F8
square
#CD81F8 #F89281 #ACF881 #81E8F8
split-complementary
#CD81F8 #E8F881 #81F892
monochromatic
#9F0DF1 #B647F5 #CD81F8 #E4BBFB #F3E2FD

Accessibility & contrast

On white

2.60
#CD81F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#CD81F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81F8
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81F8#FFFFFF#000000##000000
##CD81F81.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#669DFC
Deuteranopia (green-blind)
#7BA2F5
Tritanopia (blue-blind)
#C994B1
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cd81f8;
/* rgb */ color: rgb(205, 129, 248);
/* oklch */ color: oklch(72.8% 0.181 312.1);
Tailwind
colors: {
  custom: {
    50: '#dea7fb',
    500: '#cd81f8',
    950: '#000000',
  },
}
SCSS
$custom: #cd81f8;
$custom-light: #dea7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81f8",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 278.319,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72832,
    "c": 0.18114,
    "h": 312.1
  },
  "luminance": 0.35457
}

Semantic roles & 50–950 ramp

primary
#CD81F8
secondary
#E1F5D6
accent
#E60053
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CD81F8

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

Preview Lab → · Contrast checker → · Palette generator →

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