#CD8FEC#CD8FEC

#CD8FEC is a light, vivid purple. Relative luminance 0.387; OKLCH L 74.5% C 0.145 H 313.8°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#CD8FEC
RGBrgb(205, 143, 236)
HSLhsl(280, 71%, 74%)
HSVhsv(280, 39%, 93%)
CMYKcmyk(13.1%, 39.4%, 0%, 7.5%)
CIE-LABlab(68.52, 39.69, -37.83)
CIE-LCHlch(68.52, 54.83, 316.38°)
OKLaboklab(74.46% 0.1002 -0.1044)
OKLCHoklch(74.46% 0.145 313.8)
XYZxyz(50.1372, 38.6812, 84.1657)
Luminance0.3868 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8FEC #AEEC8F
analogous
#9F8FEC #CD8FEC #EC8FDD
triadic
#CD8FEC #ECCD8F #8FECCD
tetradic
#CD8FEC #EC9F8F #AEEC8F #8FDDEC
square
#CD8FEC #EC9F8F #AEEC8F #8FDDEC
split-complementary
#CD8FEC #DDEC8F #8FEC9F
monochromatic
#9E26DA #B65BE3 #CD8FEC #E4C3F5 #F3E5FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD8FEC#FFFFFF#000000##000000
##CD8FEC1.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)
#7EA4EF
Deuteranopia (green-blind)
#8EA9E9
Tritanopia (blue-blind)
#CB9CB2
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cd8fec;
/* rgb */ color: rgb(205, 143, 236);
/* oklch */ color: oklch(74.5% 0.145 313.8);
Tailwind
colors: {
  custom: {
    50: '#ddb1f2',
    500: '#cd8fec',
    950: '#000000',
  },
}
SCSS
$custom: #cd8fec;
$custom-light: #ddb1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8fec",
  "rgb": {
    "r": 205,
    "g": 143,
    "b": 236
  },
  "hsl": {
    "h": 280,
    "s": 70.992,
    "l": 74.314
  },
  "oklch": {
    "l": 0.74464,
    "c": 0.14472,
    "h": 313.8
  },
  "luminance": 0.3868
}

Semantic roles & 50–950 ramp

primary
#CD8FEC
secondary
#E1F2D9
accent
#D31253
background
#FDFAFE
surface
#FBF5FD
border
#D4CFD5
text
#151117
muted
#838085

Preview Lab

Preview with #CD8FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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