#CD8DF6#CD8DF6

#CD8DF6 is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.6% C 0.159 H 311.1°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#CD8DF6
RGBrgb(205, 141, 246)
HSLhsl(277, 85%, 76%)
HSVhsv(277, 43%, 96%)
CMYKcmyk(16.7%, 42.7%, 0%, 3.5%)
CIE-LABlab(68.52, 42.87, -43.30)
CIE-LCHlch(68.52, 60.93, 314.71°)
OKLaboklab(74.61% 0.1049 -0.1202)
OKLCHoklch(74.61% 0.159 311.1)
XYZxyz(51.3333, 38.6836, 91.9334)
Luminance0.3868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8DF6 #B6F68D
analogous
#988DF6 #CD8DF6 #F68DEB
triadic
#CD8DF6 #F6CD8D #8DF6CD
tetradic
#CD8DF6 #F6988D #B6F68D #8DEBF6
square
#CD8DF6 #F6988D #B6F68D #8DEBF6
split-complementary
#CD8DF6 #EBF68D #8DF698
monochromatic
#9B1CED #B454F2 #CD8DF6 #E6C6FA #F3E3FD

Accessibility & contrast

On white

2.40
#CD8DF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#CD8DF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8DF6
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8DF6#FFFFFF#000000##000000
##CD8DF61.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A4FA
Deuteranopia (green-blind)
#87A8F3
Tritanopia (blue-blind)
#C99DB6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cd8df6;
/* rgb */ color: rgb(205, 141, 246);
/* oklch */ color: oklch(74.6% 0.159 311.1);
Tailwind
colors: {
  custom: {
    50: '#deaff9',
    500: '#cd8df6',
    950: '#000000',
  },
}
SCSS
$custom: #cd8df6;
$custom-light: #deaff9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8df6",
  "rgb": {
    "r": 205,
    "g": 141,
    "b": 246
  },
  "hsl": {
    "h": 276.571,
    "s": 85.366,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74608,
    "c": 0.15949,
    "h": 311.1
  },
  "luminance": 0.38683
}

Semantic roles & 50–950 ramp

primary
#CD8DF6
secondary
#E2F5D6
accent
#E2045A
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151017
muted
#837F85

Preview Lab

Preview with #CD8DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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