#CD8CFA#CD8CFA

#CD8CFA is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.6% C 0.166 H 310.2°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#CD8CFA
RGBrgb(205, 140, 250)
HSLhsl(275, 92%, 76%)
HSVhsv(275, 44%, 98%)
CMYKcmyk(18%, 44%, 0%, 2%)
CIE-LABlab(68.49, 44.26, -45.54)
CIE-LCHlch(68.49, 63.51, 314.18°)
OKLaboklab(74.64% 0.1069 -0.1267)
OKLCHoklch(74.64% 0.166 310.2)
XYZxyz(51.8071, 38.6382, 95.1527)
Luminance0.3864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8CFA #B9FA8C
analogous
#968CFA #CD8CFA #FA8CF0
triadic
#CD8CFA #FACD8C #8CFACD
tetradic
#CD8CFA #FA968C #B9FA8C #8CF0FA
square
#CD8CFA #FA968C #B9FA8C #8CF0FA
split-complementary
#CD8CFA #F0FA8C #8CFA96
monochromatic
#9A17F5 #B451F7 #CD8CFA #E7C7FD #F2E2FE

Accessibility & contrast

On white

2.41
#CD8CFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#CD8CFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8CFA
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8CFA#FFFFFF#000000##000000
##CD8CFA1.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A4FE
Deuteranopia (green-blind)
#84A8F7
Tritanopia (blue-blind)
#C89DB7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cd8cfa;
/* rgb */ color: rgb(205, 140, 250);
/* oklch */ color: oklch(74.6% 0.166 310.2);
Tailwind
colors: {
  custom: {
    50: '#deaffc',
    500: '#cd8cfa',
    950: '#000000',
  },
}
SCSS
$custom: #cd8cfa;
$custom-light: #deaffc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8cfa",
  "rgb": {
    "r": 205,
    "g": 140,
    "b": 250
  },
  "hsl": {
    "h": 275.455,
    "s": 91.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74642,
    "c": 0.16572,
    "h": 310.2
  },
  "luminance": 0.38637
}

Semantic roles & 50–950 ramp

primary
#CD8CFA
secondary
#E3F6D5
accent
#E6005E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CD8CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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