#CD8EF7#CD8EF7

#CD8EF7 is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.8% C 0.159 H 310.7°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#CD8EF7
RGBrgb(205, 142, 247)
HSLhsl(276, 87%, 76%)
HSVhsv(276, 43%, 97%)
CMYKcmyk(17%, 42.5%, 0%, 3.1%)
CIE-LABlab(68.78, 42.54, -43.44)
CIE-LCHlch(68.78, 60.81, 314.40°)
OKLaboklab(74.82% 0.1036 -0.1206)
OKLCHoklch(74.82% 0.159 310.7)
XYZxyz(51.6353, 39.0414, 92.7933)
Luminance0.3904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8EF7 #B8F78E
analogous
#998EF7 #CD8EF7 #F78EED
triadic
#CD8EF7 #F7CD8E #8EF7CD
tetradic
#CD8EF7 #F7998E #B8F78E #8EEDF7
square
#CD8EF7 #F7998E #B8F78E #8EEDF7
split-complementary
#CD8EF7 #EDF78E #8EF799
monochromatic
#9A1CEF #B455F3 #CD8EF7 #E6C7FB #F2E2FD

Accessibility & contrast

On white

2.38
#CD8EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#CD8EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8EF7
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8EF7#FFFFFF#000000##000000
##CD8EF71.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A5FB
Deuteranopia (green-blind)
#88A9F4
Tritanopia (blue-blind)
#C89EB7
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cd8ef7;
/* rgb */ color: rgb(205, 142, 247);
/* oklch */ color: oklch(74.8% 0.159 310.7);
Tailwind
colors: {
  custom: {
    50: '#deb0fa',
    500: '#cd8ef7',
    950: '#000000',
  },
}
SCSS
$custom: #cd8ef7;
$custom-light: #deb0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8ef7",
  "rgb": {
    "r": 205,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 276,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.74817,
    "c": 0.159,
    "h": 310.7
  },
  "luminance": 0.39041
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD8EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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