#CD98DF#CD98DF

#CD98DF is a light, moderate purple. Relative luminance 0.408; OKLCH L 75.4% C 0.114 H 317.3°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#CD98DF
RGBrgb(205, 152, 223)
HSLhsl(285, 53%, 74%)
HSVhsv(285, 32%, 87%)
CMYKcmyk(8.1%, 31.8%, 0%, 12.5%)
CIE-LABlab(70.01, 32.14, -28.37)
CIE-LCHlch(70.01, 42.87, 318.57°)
OKLaboklab(75.42% 0.0842 -0.0775)
OKLCHoklch(75.42% 0.114 317.3)
XYZxyz(49.7224, 40.7644, 75.0467)
Luminance0.4076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98DF #AADF98
analogous
#A998DF #CD98DF #DF98CD
triadic
#CD98DF #DFCD98 #98DFCD
tetradic
#CD98DF #DFA998 #AADF98 #98CDDF
square
#CD98DF #DFA998 #AADF98 #98CDDF
split-complementary
#CD98DF #CDDF98 #98DFA9
monochromatic
#9F3CC1 #B669D0 #CD98DF #E4C7EE #F4E8F8

Accessibility & contrast

On white

2.29
#CD98DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.15
#CD98DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98DF
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98DF#FFFFFF#000000##000000
##CD98DF1.002.299.159.15
#FFFFFF2.291.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA8E2
Deuteranopia (green-blind)
#9BADDD
Tritanopia (blue-blind)
#CDA0B2
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cd98df;
/* rgb */ color: rgb(205, 152, 223);
/* oklch */ color: oklch(75.4% 0.114 317.3);
Tailwind
colors: {
  custom: {
    50: '#ddb7e9',
    500: '#cd98df',
    950: '#000000',
  },
}
SCSS
$custom: #cd98df;
$custom-light: #ddb7e9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98df",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 223
  },
  "hsl": {
    "h": 284.789,
    "s": 52.593,
    "l": 73.529
  },
  "oklch": {
    "l": 0.75421,
    "c": 0.11443,
    "h": 317.3
  },
  "luminance": 0.40763
}

Semantic roles & 50–950 ramp

primary
#CD98DF
secondary
#E1EFDC
accent
#C0254D
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD98DF

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

Preview Lab → · Contrast checker → · Palette generator →

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