#CD8AFF#CD8AFF

#CD8AFF is a light, vivid violet. Relative luminance 0.384; OKLCH L 74.6% C 0.175 H 309.2°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#CD8AFF
RGBrgb(205, 138, 255)
HSLhsl(274, 100%, 77%)
HSVhsv(274, 46%, 100%)
CMYKcmyk(19.6%, 45.9%, 0%, 0%)
CIE-LABlab(68.30, 46.40, -48.57)
CIE-LCHlch(68.30, 67.18, 313.69°)
OKLaboklab(74.58% 0.1103 -0.1354)
OKLCHoklch(74.58% 0.175 309.2)
XYZxyz(52.3119, 38.3768, 99.2400)
Luminance0.3838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8AFF #BCFF8A
analogous
#938AFF #CD8AFF #FF8AF7
triadic
#CD8AFF #FFCD8A #8AFFCD
tetradic
#CD8AFF #FF938A #BCFF8A #8AF7FF
square
#CD8AFF #FF938A #BCFF8A #8AF7FF
split-complementary
#CD8AFF #F7FF8A #8AFF93
monochromatic
#9910FF #B34DFF #CD8AFF #E7C7FF #F2E0FF

Accessibility & contrast

On white

2.42
#CD8AFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#CD8AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8AFF
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8AFF#FFFFFF#000000##000000
##CD8AFF1.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA4FF
Deuteranopia (green-blind)
#80A8FC
Tritanopia (blue-blind)
#C79DB9
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cd8aff;
/* rgb */ color: rgb(205, 138, 255);
/* oklch */ color: oklch(74.6% 0.175 309.2);
Tailwind
colors: {
  custom: {
    50: '#deadff',
    500: '#cd8aff',
    950: '#000000',
  },
}
SCSS
$custom: #cd8aff;
$custom-light: #deadff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8aff",
  "rgb": {
    "r": 205,
    "g": 138,
    "b": 255
  },
  "hsl": {
    "h": 274.359,
    "s": 100,
    "l": 77.059
  },
  "oklch": {
    "l": 0.74575,
    "c": 0.17467,
    "h": 309.2
  },
  "luminance": 0.38376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD8AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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