#CD98CD#CD98CD

#CD98CD is a light, moderate purple. Relative luminance 0.398; OKLCH L 74.7% C 0.095 H 326.5°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#CD98CD
RGBrgb(205, 152, 205)
HSLhsl(300, 35%, 70%)
HSVhsv(300, 26%, 80%)
CMYKcmyk(0%, 25.9%, 0%, 19.6%)
CIE-LABlab(69.36, 28.65, -19.43)
CIE-LCHlch(69.36, 34.61, 325.85°)
OKLaboklab(74.71% 0.0791 -0.0524)
OKLCHoklch(74.71% 0.095 326.5)
XYZxyz(47.4234, 39.8448, 62.9385)
Luminance0.3984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98CD #98CD98
analogous
#B298CD #CD98CD #CD98B3
triadic
#CD98CD #CDCD98 #98CDCD
tetradic
#CD98CD #CDB398 #98CD98 #98B2CD
square
#CD98CD #CDB398 #98CD98 #98B2CD
split-complementary
#CD98CD #B3CD98 #98CDB3
monochromatic
#9E4D9E #B96FB9 #CD98CD #E1C1E1 #F5EAF5

Accessibility & contrast

On white

2.34
#CD98CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#CD98CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98CD
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98CD#FFFFFF#000000##000000
##CD98CD1.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#95A5CF
Deuteranopia (green-blind)
#A1ACCB
Tritanopia (blue-blind)
#D09CAB
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #cd98cd;
/* rgb */ color: rgb(205, 152, 205);
/* oklch */ color: oklch(74.7% 0.095 326.5);
Tailwind
colors: {
  custom: {
    50: '#ddb7dc',
    500: '#cd98cd',
    950: '#000000',
  },
}
SCSS
$custom: #cd98cd;
$custom-light: #ddb7dc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98cd",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 205
  },
  "hsl": {
    "h": 300,
    "s": 34.641,
    "l": 70
  },
  "oklch": {
    "l": 0.74709,
    "c": 0.09492,
    "h": 326.5
  },
  "luminance": 0.39843
}

Semantic roles & 50–950 ramp

primary
#CD98CD
secondary
#D9E8D9
accent
#AD3838
background
#FDFBFD
surface
#FBF6FB
border
#D4D0D4
text
#151115
muted
#838083

Preview Lab

Preview with #CD98CD

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

Preview Lab → · Contrast checker → · Palette generator →

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