#CD98EE#CD98EE

#CD98EE is a light, vivid violet. Relative luminance 0.416; OKLCH L 76.1% C 0.132 H 311.7°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#CD98EE
RGBrgb(205, 152, 238)
HSLhsl(277, 72%, 76%)
HSVhsv(277, 36%, 93%)
CMYKcmyk(13.9%, 36.1%, 0%, 6.7%)
CIE-LABlab(70.60, 35.23, -35.69)
CIE-LCHlch(70.60, 50.14, 314.63°)
OKLaboklab(76.06% 0.0878 -0.0983)
OKLCHoklch(76.06% 0.132 311.7)
XYZxyz(51.8350, 41.6095, 86.1731)
Luminance0.4161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98EE #B9EE98
analogous
#A298EE #CD98EE #EE98E4
triadic
#CD98EE #EECD98 #98EECD
tetradic
#CD98EE #EEA298 #B9EE98 #98E4EE
square
#CD98EE #EEA298 #B9EE98 #98E4EE
split-complementary
#CD98EE #E4EE98 #98EEA2
monochromatic
#9A2FDD #B463E5 #CD98EE #E7CDF7 #F2E5FB

Accessibility & contrast

On white

2.25
#CD98EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#CD98EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98EE
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98EE#FFFFFF#000000##000000
##CD98EE1.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AAF1
Deuteranopia (green-blind)
#95AEEB
Tritanopia (blue-blind)
#CAA4B8
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd98ee;
/* rgb */ color: rgb(205, 152, 238);
/* oklch */ color: oklch(76.1% 0.132 311.7);
Tailwind
colors: {
  custom: {
    50: '#ddb7f4',
    500: '#cd98ee',
    950: '#000000',
  },
}
SCSS
$custom: #cd98ee;
$custom-light: #ddb7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98ee",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 238
  },
  "hsl": {
    "h": 276.977,
    "s": 71.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.76064,
    "c": 0.13181,
    "h": 311.7
  },
  "luminance": 0.41609
}

Semantic roles & 50–950 ramp

primary
#CD98EE
secondary
#E3F2D9
accent
#D4125C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD98EE

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

Preview Lab → · Contrast checker → · Palette generator →

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