#CD98DC#CD98DC

#CD98DC is a light, moderate purple. Relative luminance 0.406; OKLCH L 75.3% C 0.111 H 318.7°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#CD98DC
RGBrgb(205, 152, 220)
HSLhsl(287, 49%, 73%)
HSVhsv(287, 31%, 86%)
CMYKcmyk(6.8%, 30.9%, 0%, 13.7%)
CIE-LABlab(69.90, 31.55, -26.89)
CIE-LCHlch(69.90, 41.45, 319.55°)
OKLaboklab(75.3% 0.0834 -0.0733)
OKLCHoklch(75.3% 0.111 318.7)
XYZxyz(49.3216, 40.6041, 72.9355)
Luminance0.4060 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98DC #A7DC98
analogous
#AB98DC #CD98DC #DC98C9
triadic
#CD98DC #DCCD98 #98DCCD
tetradic
#CD98DC #DCAB98 #A7DC98 #98C9DC
square
#CD98DC #DCAB98 #A7DC98 #98C9DC
split-complementary
#CD98DC #C9DC98 #98DCAB
monochromatic
#9F3FBA #B76ACC #CD98DC #E3C6EC #F4E8F7

Accessibility & contrast

On white

2.30
#CD98DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.12
#CD98DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98DC
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98DC#FFFFFF#000000##000000
##CD98DC1.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A7DF
Deuteranopia (green-blind)
#9CADDA
Tritanopia (blue-blind)
#CEA0B1
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cd98dc;
/* rgb */ color: rgb(205, 152, 220);
/* oklch */ color: oklch(75.3% 0.111 318.7);
Tailwind
colors: {
  custom: {
    50: '#ddb7e7',
    500: '#cd98dc',
    950: '#000000',
  },
}
SCSS
$custom: #cd98dc;
$custom-light: #ddb7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98dc",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 220
  },
  "hsl": {
    "h": 286.765,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.75298,
    "c": 0.11104,
    "h": 318.7
  },
  "luminance": 0.40603
}

Semantic roles & 50–950 ramp

primary
#CD98DC
secondary
#E1EEDD
accent
#BD2949
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD98DC

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

Preview Lab → · Contrast checker → · Palette generator →

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