#CD8CF2#CD8CF2

#CD8CF2 is a light, vivid violet. Relative luminance 0.381; OKLCH L 74.3% C 0.157 H 312.4°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#CD8CF2
RGBrgb(205, 140, 242)
HSLhsl(278, 80%, 75%)
HSVhsv(278, 42%, 95%)
CMYKcmyk(15.3%, 42.1%, 0%, 5.1%)
CIE-LABlab(68.13, 42.56, -41.73)
CIE-LCHlch(68.13, 59.60, 315.56°)
OKLaboklab(74.26% 0.1056 -0.1156)
OKLCHoklch(74.26% 0.157 312.4)
XYZxyz(50.5792, 38.1471, 88.6858)
Luminance0.3815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8CF2 #B1F28C
analogous
#9A8CF2 #CD8CF2 #F28CE4
triadic
#CD8CF2 #F2CD8C #8CF2CD
tetradic
#CD8CF2 #F29A8C #B1F28C #8CE4F2
square
#CD8CF2 #F29A8C #B1F28C #8CE4F2
split-complementary
#CD8CF2 #E4F28C #8CF29A
monochromatic
#9D1EE6 #B555EC #CD8CF2 #E5C3F8 #F3E4FC

Accessibility & contrast

On white

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

On black

8.63
#CD8CF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8CF2
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8CF2#FFFFFF#000000##000000
##CD8CF21.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A3F6
Deuteranopia (green-blind)
#88A8EF
Tritanopia (blue-blind)
#CA9BB4
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cd8cf2;
/* rgb */ color: rgb(205, 140, 242);
/* oklch */ color: oklch(74.3% 0.157 312.4);
Tailwind
colors: {
  custom: {
    50: '#deaff6',
    500: '#cd8cf2',
    950: '#000000',
  },
}
SCSS
$custom: #cd8cf2;
$custom-light: #deaff6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8cf2",
  "rgb": {
    "r": 205,
    "g": 140,
    "b": 242
  },
  "hsl": {
    "h": 278.235,
    "s": 79.687,
    "l": 74.902
  },
  "oklch": {
    "l": 0.74255,
    "c": 0.15657,
    "h": 312.4
  },
  "luminance": 0.38146
}

Semantic roles & 50–950 ramp

primary
#CD8CF2
secondary
#E2F4D7
accent
#DC0A56
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CD8CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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