#CD98DB#CD98DB

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

Color values

HEX#CD98DB
RGBrgb(205, 152, 219)
HSLhsl(287, 48%, 73%)
HSVhsv(287, 31%, 86%)
CMYKcmyk(6.4%, 30.6%, 0%, 14.1%)
CIE-LABlab(69.86, 31.35, -26.40)
CIE-LCHlch(69.86, 40.98, 319.90°)
OKLaboklab(75.26% 0.0831 -0.072)
OKLCHoklch(75.26% 0.11 319.1)
XYZxyz(49.1895, 40.5513, 72.2401)
Luminance0.4055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98DB #A6DB98
analogous
#AC98DB #CD98DB #DB98C7
triadic
#CD98DB #DBCD98 #98DBCD
tetradic
#CD98DB #DBAC98 #A6DB98 #98C7DB
square
#CD98DB #DBAC98 #A6DB98 #98C7DB
split-complementary
#CD98DB #C7DB98 #98DBAC
monochromatic
#9F40B8 #B76BCB #CD98DB #E3C5EB #F4E8F7

Accessibility & contrast

On white

2.31
#CD98DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#CD98DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98DB
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98DB#FFFFFF#000000##000000
##CD98DB1.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A7DE
Deuteranopia (green-blind)
#9CADD9
Tritanopia (blue-blind)
#CE9FB0
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cd98db;
/* rgb */ color: rgb(205, 152, 219);
/* oklch */ color: oklch(75.3% 0.110 319.1);
Tailwind
colors: {
  custom: {
    50: '#ddb7e6',
    500: '#cd98db',
    950: '#000000',
  },
}
SCSS
$custom: #cd98db;
$custom-light: #ddb7e6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98db",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 219
  },
  "hsl": {
    "h": 287.463,
    "s": 48.201,
    "l": 72.745
  },
  "oklch": {
    "l": 0.75257,
    "c": 0.10993,
    "h": 319.1
  },
  "luminance": 0.4055
}

Semantic roles & 50–950 ramp

primary
#CD98DB
secondary
#E0EEDD
accent
#BB2A48
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD98DB

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

Preview Lab → · Contrast checker → · Palette generator →

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