#CD8AFD#CD8AFD

#CD8AFD is a light, vivid violet. Relative luminance 0.382; OKLCH L 74.5% C 0.172 H 309.7°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#CD8AFD
RGBrgb(205, 138, 253)
HSLhsl(275, 97%, 77%)
HSVhsv(275, 45%, 99%)
CMYKcmyk(19%, 45.5%, 0%, 0.8%)
CIE-LABlab(68.20, 45.97, -47.63)
CIE-LCHlch(68.20, 66.20, 313.98°)
OKLaboklab(74.47% 0.1101 -0.1327)
OKLCHoklch(74.47% 0.172 309.7)
XYZxyz(51.9916, 38.2487, 97.5533)
Luminance0.3825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8AFD #BAFD8A
analogous
#948AFD #CD8AFD #FD8AF3
triadic
#CD8AFD #FDCD8A #8AFDCD
tetradic
#CD8AFD #FD948A #BAFD8A #8AF3FD
square
#CD8AFD #FD948A #BAFD8A #8AF3FD
split-complementary
#CD8AFD #F3FD8A #8AFD94
monochromatic
#9A12FB #B34EFC #CD8AFD #E7C6FE #F2E1FE

Accessibility & contrast

On white

2.43
#CD8AFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.65
#CD8AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8AFD
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8AFD#FFFFFF#000000##000000
##CD8AFD1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA3FF
Deuteranopia (green-blind)
#81A7FA
Tritanopia (blue-blind)
#C79CB8
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cd8afd;
/* rgb */ color: rgb(205, 138, 253);
/* oklch */ color: oklch(74.5% 0.172 309.7);
Tailwind
colors: {
  custom: {
    50: '#deadfe',
    500: '#cd8afd',
    950: '#000000',
  },
}
SCSS
$custom: #cd8afd;
$custom-light: #deadfe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8afd",
  "rgb": {
    "r": 205,
    "g": 138,
    "b": 253
  },
  "hsl": {
    "h": 274.957,
    "s": 96.639,
    "l": 76.667
  },
  "oklch": {
    "l": 0.74474,
    "c": 0.17238,
    "h": 309.7
  },
  "luminance": 0.38248
}

Semantic roles & 50–950 ramp

primary
#CD8AFD
secondary
#E3F7D4
accent
#E60060
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CD8AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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