#CD8AF2#CD8AF2

#CD8AF2 is a light, vivid violet. Relative luminance 0.376; OKLCH L 73.9% C 0.160 H 312.7°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#CD8AF2
RGBrgb(205, 138, 242)
HSLhsl(279, 80%, 75%)
HSVhsv(279, 43%, 95%)
CMYKcmyk(15.3%, 43%, 0%, 5.1%)
CIE-LABlab(67.70, 43.63, -42.40)
CIE-LCHlch(67.70, 60.83, 315.82°)
OKLaboklab(73.93% 0.1084 -0.1176)
OKLCHoklch(73.93% 0.16 312.7)
XYZxyz(50.2896, 37.5679, 88.5893)
Luminance0.3757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8AF2 #AFF28A
analogous
#998AF2 #CD8AF2 #F28AE3
triadic
#CD8AF2 #F2CD8A #8AF2CD
tetradic
#CD8AF2 #F2998A #AFF28A #8AE3F2
square
#CD8AF2 #F2998A #AFF28A #8AE3F2
split-complementary
#CD8AF2 #E3F28A #8AF299
monochromatic
#9E1CE6 #B553EC #CD8AF2 #E5C1F8 #F3E3FC

Accessibility & contrast

On white

2.47
#CD8AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#CD8AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8AF2
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8AF2#FFFFFF#000000##000000
##CD8AF21.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A1F6
Deuteranopia (green-blind)
#87A7EF
Tritanopia (blue-blind)
#CA99B3
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cd8af2;
/* rgb */ color: rgb(205, 138, 242);
/* oklch */ color: oklch(73.9% 0.160 312.7);
Tailwind
colors: {
  custom: {
    50: '#deadf6',
    500: '#cd8af2',
    950: '#000000',
  },
}
SCSS
$custom: #cd8af2;
$custom-light: #deadf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8af2",
  "rgb": {
    "r": 205,
    "g": 138,
    "b": 242
  },
  "hsl": {
    "h": 278.654,
    "s": 80,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73934,
    "c": 0.15988,
    "h": 312.7
  },
  "luminance": 0.37567
}

Semantic roles & 50–950 ramp

primary
#CD8AF2
secondary
#E1F4D7
accent
#DC0954
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CD8AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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