#CD98E2#CD98E2

#CD98E2 is a light, moderate purple. Relative luminance 0.409; OKLCH L 75.5% C 0.118 H 316.1°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#CD98E2
RGBrgb(205, 152, 226)
HSLhsl(283, 56%, 74%)
HSVhsv(283, 33%, 89%)
CMYKcmyk(9.3%, 32.7%, 0%, 11.4%)
CIE-LABlab(70.13, 32.75, -29.85)
CIE-LCHlch(70.13, 44.31, 317.66°)
OKLaboklab(75.55% 0.0849 -0.0817)
OKLCHoklch(75.55% 0.118 316.1)
XYZxyz(50.1305, 40.9276, 77.1958)
Luminance0.4093 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98E2 #ADE298
analogous
#A898E2 #CD98E2 #E298D2
triadic
#CD98E2 #E2CD98 #98E2CD
tetradic
#CD98E2 #E2A898 #ADE298 #98D2E2
square
#CD98E2 #E2A898 #ADE298 #98D2E2
split-complementary
#CD98E2 #D2E298 #98E2A8
monochromatic
#9F38C7 #B668D5 #CD98E2 #E4C8EF #F3E7F8

Accessibility & contrast

On white

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

On black

9.19
#CD98E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98E2
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98E2#FFFFFF#000000##000000
##CD98E21.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DA8E5
Deuteranopia (green-blind)
#9AADE0
Tritanopia (blue-blind)
#CCA1B3
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cd98e2;
/* rgb */ color: rgb(205, 152, 226);
/* oklch */ color: oklch(75.5% 0.118 316.1);
Tailwind
colors: {
  custom: {
    50: '#ddb7eb',
    500: '#cd98e2',
    950: '#000000',
  },
}
SCSS
$custom: #cd98e2;
$custom-light: #ddb7eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98e2",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 226
  },
  "hsl": {
    "h": 282.973,
    "s": 56.061,
    "l": 74.118
  },
  "oklch": {
    "l": 0.75546,
    "c": 0.11784,
    "h": 316.1
  },
  "luminance": 0.40927
}

Semantic roles & 50–950 ramp

primary
#CD98E2
secondary
#E1F0DB
accent
#C42250
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD98E2

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

Preview Lab → · Contrast checker → · Palette generator →

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