#CD98E5#CD98E5

#CD98E5 is a light, vivid purple. Relative luminance 0.411; OKLCH L 75.7% C 0.121 H 314.9°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#CD98E5
RGBrgb(205, 152, 229)
HSLhsl(281, 60%, 75%)
HSVhsv(281, 34%, 90%)
CMYKcmyk(10.5%, 33.6%, 0%, 10.2%)
CIE-LABlab(70.24, 33.36, -31.31)
CIE-LCHlch(70.24, 45.75, 316.81°)
OKLaboklab(75.67% 0.0857 -0.0859)
OKLCHoklch(75.67% 0.121 314.9)
XYZxyz(50.5457, 41.0937, 79.3827)
Luminance0.4109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98E5 #B0E598
analogous
#A798E5 #CD98E5 #E598D6
triadic
#CD98E5 #E5CD98 #98E5CD
tetradic
#CD98E5 #E5A798 #B0E598 #98D6E5
square
#CD98E5 #E5A798 #B0E598 #98D6E5
split-complementary
#CD98E5 #D6E598 #98E5A7
monochromatic
#9E36CC #B567D9 #CD98E5 #E5C9F1 #F3E7F9

Accessibility & contrast

On white

2.28
#CD98E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#CD98E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98E5
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98E5#FFFFFF#000000##000000
##CD98E51.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA9E8
Deuteranopia (green-blind)
#98ADE3
Tritanopia (blue-blind)
#CCA2B4
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd98e5;
/* rgb */ color: rgb(205, 152, 229);
/* oklch */ color: oklch(75.7% 0.121 314.9);
Tailwind
colors: {
  custom: {
    50: '#ddb7ed',
    500: '#cd98e5',
    950: '#000000',
  },
}
SCSS
$custom: #cd98e5;
$custom-light: #ddb7ed;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98e5",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 229
  },
  "hsl": {
    "h": 281.299,
    "s": 59.69,
    "l": 74.706
  },
  "oklch": {
    "l": 0.75673,
    "c": 0.1213,
    "h": 314.9
  },
  "luminance": 0.41093
}

Semantic roles & 50–950 ramp

primary
#CD98E5
secondary
#E1F0DB
accent
#C71E53
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD98E5

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

Preview Lab → · Contrast checker → · Palette generator →

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