#CD81F7#CD81F7

#CD81F7 is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.8% C 0.180 H 312.4°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#CD81F7
RGBrgb(205, 129, 247)
HSLhsl(279, 88%, 74%)
HSVhsv(279, 48%, 97%)
CMYKcmyk(17%, 47.8%, 0%, 3.1%)
CIE-LABlab(66.06, 49.43, -47.73)
CIE-LCHlch(66.06, 68.71, 316.01°)
OKLaboklab(72.78% 0.1214 -0.1329)
OKLCHoklch(72.78% 0.18 312.4)
XYZxyz(49.8127, 35.3961, 92.1857)
Luminance0.3539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81F7 #ABF781
analogous
#9281F7 #CD81F7 #F781E6
triadic
#CD81F7 #F7CD81 #81F7CD
tetradic
#CD81F7 #F79281 #ABF781 #81E6F7
square
#CD81F7 #F79281 #ABF781 #81E6F7
split-complementary
#CD81F7 #E6F781 #81F792
monochromatic
#9F0FEE #B647F3 #CD81F7 #E4BBFB #F4E2FD

Accessibility & contrast

On white

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

On black

8.08
#CD81F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81F7
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81F7#FFFFFF#000000##000000
##CD81F71.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#669CFB
Deuteranopia (green-blind)
#7CA2F4
Tritanopia (blue-blind)
#C993B1
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cd81f7;
/* rgb */ color: rgb(205, 129, 247);
/* oklch */ color: oklch(72.8% 0.180 312.4);
Tailwind
colors: {
  custom: {
    50: '#dea7fa',
    500: '#cd81f7',
    950: '#000000',
  },
}
SCSS
$custom: #cd81f7;
$custom-light: #dea7fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81f7",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 247
  },
  "hsl": {
    "h": 278.644,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72781,
    "c": 0.18004,
    "h": 312.4
  },
  "luminance": 0.35395
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD81F7

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

Preview Lab → · Contrast checker → · Palette generator →

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