#CDABF8#CDABF8

#CDABF8 is a light, moderate violet. Relative luminance 0.489; OKLCH L 79.8% C 0.112 H 304.2°. Best body text is #000000 at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#CDABF8
RGBrgb(205, 171, 248)
HSLhsl(266, 85%, 82%)
HSVhsv(266, 31%, 97%)
CMYKcmyk(17.3%, 31%, 0%, 2.7%)
CIE-LABlab(75.38, 26.98, -33.72)
CIE-LCHlch(75.38, 43.19, 308.67°)
OKLaboklab(79.83% 0.0631 -0.0928)
OKLCHoklch(79.83% 0.112 304.2)
XYZxyz(56.6796, 48.8824, 95.2380)
Luminance0.4888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDABF8 #D6F8AB
analogous
#ABB0F8 #CDABF8 #F4ABF8
triadic
#CDABF8 #F8CDAB #ABF8CD
tetradic
#CDABF8 #F8ABB0 #D6F8AB #ABF8F4
square
#CDABF8 #F8ABB0 #D6F8AB #ABF8F4
split-complementary
#CDABF8 #F8F4AB #B0F8AB
monochromatic
#8A3AEF #AB73F3 #CDABF8 #EEE3FD #EEE3FD

Accessibility & contrast

On white

1.95
#CDABF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.78
#CDABF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDABF8
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDABF8#FFFFFF#000000##000000
##CDABF81.001.9510.7810.78
#FFFFFF1.951.0021.0021.00
#00000010.7821.001.001.00
##00000010.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9BB9FB
Deuteranopia (green-blind)
#A2BAF6
Tritanopia (blue-blind)
#C6B6C7
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #cdabf8;
/* rgb */ color: rgb(205, 171, 248);
/* oklch */ color: oklch(79.8% 0.112 304.2);
Tailwind
colors: {
  custom: {
    50: '#ddc4fa',
    500: '#cdabf8',
    950: '#000000',
  },
}
SCSS
$custom: #cdabf8;
$custom-light: #ddc4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cdabf8",
  "rgb": {
    "r": 205,
    "g": 171,
    "b": 248
  },
  "hsl": {
    "h": 266.494,
    "s": 84.615,
    "l": 82.157
  },
  "oklch": {
    "l": 0.79832,
    "c": 0.11226,
    "h": 304.2
  },
  "luminance": 0.48882
}

Semantic roles & 50–950 ramp

primary
#CDABF8
secondary
#E7F5D6
accent
#E10480
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151217
muted
#838185

Preview Lab

Preview with #CDABF8

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

Preview Lab → · Contrast checker → · Palette generator →

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