#CD8AEF#CD8AEF

#CD8AEF is a light, vivid violet. Relative luminance 0.374; OKLCH L 73.8% C 0.156 H 313.6°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#CD8AEF
RGBrgb(205, 138, 239)
HSLhsl(280, 76%, 74%)
HSVhsv(280, 42%, 94%)
CMYKcmyk(14.2%, 42.3%, 0%, 6.3%)
CIE-LABlab(67.57, 43.00, -40.96)
CIE-LCHlch(67.57, 59.38, 316.39°)
OKLaboklab(73.79% 0.1078 -0.1134)
OKLCHoklch(73.79% 0.156 313.6)
XYZxyz(49.8427, 37.3892, 86.2358)
Luminance0.3739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8AEF #ACEF8A
analogous
#9B8AEF #CD8AEF #EF8ADF
triadic
#CD8AEF #EFCD8A #8AEFCD
tetradic
#CD8AEF #EF9B8A #ACEF8A #8ADFEF
square
#CD8AEF #EF9B8A #ACEF8A #8ADFEF
split-complementary
#CD8AEF #DFEF8A #8AEF9B
monochromatic
#9F1FE0 #B654E8 #CD8AEF #E4C0F6 #F3E4FB

Accessibility & contrast

On white

2.48
#CD8AEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#CD8AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8AEF
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8AEF#FFFFFF#000000##000000
##CD8AEF1.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A1F3
Deuteranopia (green-blind)
#88A6EC
Tritanopia (blue-blind)
#CA98B1
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cd8aef;
/* rgb */ color: rgb(205, 138, 239);
/* oklch */ color: oklch(73.8% 0.156 313.6);
Tailwind
colors: {
  custom: {
    50: '#deadf4',
    500: '#cd8aef',
    950: '#000000',
  },
}
SCSS
$custom: #cd8aef;
$custom-light: #deadf4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8aef",
  "rgb": {
    "r": 205,
    "g": 138,
    "b": 239
  },
  "hsl": {
    "h": 279.802,
    "s": 75.94,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73791,
    "c": 0.15649,
    "h": 313.6
  },
  "luminance": 0.37388
}

Semantic roles & 50–950 ramp

primary
#CD8AEF
secondary
#E1F3D8
accent
#D80D52
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CD8AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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