#CD9FEA#CD9FEA

#CD9FEA is a light, moderate violet. Relative luminance 0.437; OKLCH L 77.1% C 0.115 H 311.8°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#CD9FEA
RGBrgb(205, 159, 234)
HSLhsl(277, 64%, 77%)
HSVhsv(277, 32%, 92%)
CMYKcmyk(12.4%, 32.1%, 0%, 8.2%)
CIE-LABlab(72.04, 30.57, -31.28)
CIE-LCHlch(72.04, 43.73, 314.35°)
OKLaboklab(77.1% 0.0767 -0.0858)
OKLCHoklch(77.1% 0.115 311.8)
XYZxyz(52.4237, 43.7167, 83.5024)
Luminance0.4372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9FEA #BCEA9F
analogous
#A89FEA #CD9FEA #EA9FE2
triadic
#CD9FEA #EACD9F #9FEACD
tetradic
#CD9FEA #EAA89F #BCEA9F #9FE2EA
square
#CD9FEA #EAA89F #BCEA9F #9FE2EA
split-complementary
#CD9FEA #E2EA9F #9FEAA8
monochromatic
#993BD4 #B36DDF #CD9FEA #E7D1F5 #F2E6FA

Accessibility & contrast

On white

2.16
#CD9FEA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.74
#CD9FEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9FEA
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9FEA#FFFFFF#000000##000000
##CD9FEA1.002.169.749.74
#FFFFFF2.161.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#92AEED
Deuteranopia (green-blind)
#9DB2E8
Tritanopia (blue-blind)
#CAA9BA
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cd9fea;
/* rgb */ color: rgb(205, 159, 234);
/* oklch */ color: oklch(77.1% 0.115 311.8);
Tailwind
colors: {
  custom: {
    50: '#ddbcf1',
    500: '#cd9fea',
    950: '#000000',
  },
}
SCSS
$custom: #cd9fea;
$custom-light: #ddbcf1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9fea",
  "rgb": {
    "r": 205,
    "g": 159,
    "b": 234
  },
  "hsl": {
    "h": 276.8,
    "s": 64.103,
    "l": 77.059
  },
  "oklch": {
    "l": 0.77104,
    "c": 0.11512,
    "h": 311.8
  },
  "luminance": 0.43716
}

Semantic roles & 50–950 ramp

primary
#CD9FEA
secondary
#E3F1DA
accent
#CC1A5F
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151216
muted
#838184

Preview Lab

Preview with #CD9FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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