#CDABF7#CDABF7

#CDABF7 is a light, moderate violet. Relative luminance 0.488; OKLCH L 79.8% C 0.111 H 304.5°. Best body text is #000000 at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#CDABF7
RGBrgb(205, 171, 247)
HSLhsl(267, 83%, 82%)
HSVhsv(267, 31%, 97%)
CMYKcmyk(17%, 30.8%, 0%, 3.1%)
CIE-LABlab(75.34, 26.77, -33.24)
CIE-LCHlch(75.34, 42.68, 308.84°)
OKLaboklab(79.79% 0.0629 -0.0915)
OKLCHoklch(79.79% 0.111 304.5)
XYZxyz(56.5249, 48.8205, 94.4231)
Luminance0.4882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDABF7 #D5F7AB
analogous
#ABAFF7 #CDABF7 #F3ABF7
triadic
#CDABF7 #F7CDAB #ABF7CD
tetradic
#CDABF7 #F7ABAF #D5F7AB #ABF7F3
square
#CDABF7 #F7ABAF #D5F7AB #ABF7F3
split-complementary
#CDABF7 #F7F3AB #AFF7AB
monochromatic
#8A3BEC #AC73F2 #CDABF7 #EEE3FC #EEE3FC

Accessibility & contrast

On white

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

On black

10.76
#CDABF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDABF7
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDABF7#FFFFFF#000000##000000
##CDABF71.001.9510.7610.76
#FFFFFF1.951.0021.0021.00
#00000010.7621.001.001.00
##00000010.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9CB9FA
Deuteranopia (green-blind)
#A2BAF5
Tritanopia (blue-blind)
#C7B6C6
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #cdabf7;
/* rgb */ color: rgb(205, 171, 247);
/* oklch */ color: oklch(79.8% 0.111 304.5);
Tailwind
colors: {
  custom: {
    50: '#ddc4fa',
    500: '#cdabf7',
    950: '#000000',
  },
}
SCSS
$custom: #cdabf7;
$custom-light: #ddc4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cdabf7",
  "rgb": {
    "r": 205,
    "g": 171,
    "b": 247
  },
  "hsl": {
    "h": 266.842,
    "s": 82.609,
    "l": 81.961
  },
  "oklch": {
    "l": 0.7979,
    "c": 0.11099,
    "h": 304.5
  },
  "luminance": 0.4882
}

Semantic roles & 50–950 ramp

primary
#CDABF7
secondary
#E7F4D7
accent
#DF067E
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151217
muted
#838185

Preview Lab

Preview with #CDABF7

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

Preview Lab → · Contrast checker → · Palette generator →

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