#CD98E4#CD98E4

#CD98E4 is a light, vivid purple. Relative luminance 0.410; OKLCH L 75.6% C 0.120 H 315.3°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#CD98E4
RGBrgb(205, 152, 228)
HSLhsl(282, 58%, 75%)
HSVhsv(282, 33%, 89%)
CMYKcmyk(10.1%, 33.3%, 0%, 10.6%)
CIE-LABlab(70.20, 33.16, -30.82)
CIE-LCHlch(70.20, 45.27, 317.09°)
OKLaboklab(75.63% 0.0854 -0.0845)
OKLCHoklch(75.63% 0.12 315.3)
XYZxyz(50.4065, 41.0381, 78.6495)
Luminance0.4104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98E4 #AFE498
analogous
#A798E4 #CD98E4 #E498D5
triadic
#CD98E4 #E4CD98 #98E4CD
tetradic
#CD98E4 #E4A798 #AFE498 #98D5E4
square
#CD98E4 #E4A798 #AFE498 #98D5E4
split-complementary
#CD98E4 #D5E498 #98E4A7
monochromatic
#9E37CB #B568D7 #CD98E4 #E5C8F1 #F3E7F9

Accessibility & contrast

On white

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

On black

9.21
#CD98E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98E4
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98E4#FFFFFF#000000##000000
##CD98E41.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DA8E7
Deuteranopia (green-blind)
#99ADE2
Tritanopia (blue-blind)
#CCA2B4
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd98e4;
/* rgb */ color: rgb(205, 152, 228);
/* oklch */ color: oklch(75.6% 0.120 315.3);
Tailwind
colors: {
  custom: {
    50: '#ddb7ec',
    500: '#cd98e4',
    950: '#000000',
  },
}
SCSS
$custom: #cd98e4;
$custom-light: #ddb7ec;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98e4",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 228
  },
  "hsl": {
    "h": 281.842,
    "s": 58.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.75631,
    "c": 0.12014,
    "h": 315.3
  },
  "luminance": 0.41037
}

Semantic roles & 50–950 ramp

primary
#CD98E4
secondary
#E1F0DB
accent
#C61F52
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD98E4

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

Preview Lab → · Contrast checker → · Palette generator →

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