#CD8DF7#CD8DF7

#CD8DF7 is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.7% C 0.161 H 310.8°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#CD8DF7
RGBrgb(205, 141, 247)
HSLhsl(276, 87%, 76%)
HSVhsv(276, 43%, 97%)
CMYKcmyk(17%, 42.9%, 0%, 3.1%)
CIE-LABlab(68.57, 43.08, -43.78)
CIE-LCHlch(68.57, 61.42, 314.54°)
OKLaboklab(74.66% 0.105 -0.1216)
OKLCHoklch(74.66% 0.161 310.8)
XYZxyz(51.4872, 38.7451, 92.7439)
Luminance0.3874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8DF7 #B7F78D
analogous
#988DF7 #CD8DF7 #F78DEC
triadic
#CD8DF7 #F7CD8D #8DF7CD
tetradic
#CD8DF7 #F7988D #B7F78D #8DECF7
square
#CD8DF7 #F7988D #B7F78D #8DECF7
split-complementary
#CD8DF7 #ECF78D #8DF798
monochromatic
#9B1BEF #B454F3 #CD8DF7 #E6C6FB #F2E2FD

Accessibility & contrast

On white

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

On black

8.75
#CD8DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8DF7
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8DF7#FFFFFF#000000##000000
##CD8DF71.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A4FB
Deuteranopia (green-blind)
#87A9F4
Tritanopia (blue-blind)
#C89DB6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cd8df7;
/* rgb */ color: rgb(205, 141, 247);
/* oklch */ color: oklch(74.7% 0.161 310.8);
Tailwind
colors: {
  custom: {
    50: '#deaffa',
    500: '#cd8df7',
    950: '#000000',
  },
}
SCSS
$custom: #cd8df7;
$custom-light: #deaffa;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8df7",
  "rgb": {
    "r": 205,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 276.226,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74656,
    "c": 0.16064,
    "h": 310.8
  },
  "luminance": 0.38744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD8DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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