#CD81F2#CD81F2

#CD81F2 is a light, vivid purple. Relative luminance 0.351; OKLCH L 72.5% C 0.175 H 313.8°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#CD81F2
RGBrgb(205, 129, 242)
HSLhsl(280, 81%, 73%)
HSVhsv(280, 47%, 95%)
CMYKcmyk(15.3%, 46.7%, 0%, 5.1%)
CIE-LABlab(65.82, 48.39, -45.35)
CIE-LCHlch(65.82, 66.32, 316.85°)
OKLaboklab(72.53% 0.1208 -0.126)
OKLCHoklch(72.53% 0.175 313.8)
XYZxyz(49.0515, 35.0916, 88.1766)
Luminance0.3509 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81F2 #A6F281
analogous
#9481F2 #CD81F2 #F281DE
triadic
#CD81F2 #F2CD81 #81F2CD
tetradic
#CD81F2 #F29481 #A6F281 #81DEF2
square
#CD81F2 #F29481 #A6F281 #81DEF2
split-complementary
#CD81F2 #DEF281 #81F294
monochromatic
#9F17E1 #B74AEC #CD81F2 #E3B8F8 #F4E3FC

Accessibility & contrast

On white

2.62
#CD81F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#CD81F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81F2
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81F2#FFFFFF#000000##000000
##CD81F21.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#699CF6
Deuteranopia (green-blind)
#7FA2EF
Tritanopia (blue-blind)
#CA92AE
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cd81f2;
/* rgb */ color: rgb(205, 129, 242);
/* oklch */ color: oklch(72.5% 0.175 313.8);
Tailwind
colors: {
  custom: {
    50: '#dea7f7',
    500: '#cd81f2',
    950: '#000000',
  },
}
SCSS
$custom: #cd81f2;
$custom-light: #dea7f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81f2",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 280.354,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72528,
    "c": 0.17456,
    "h": 313.8
  },
  "luminance": 0.3509
}

Semantic roles & 50–950 ramp

primary
#CD81F2
secondary
#E0F4D7
accent
#DE084E
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CD81F2

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

Preview Lab → · Contrast checker → · Palette generator →

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