#CD98ED#CD98ED

#CD98ED is a light, vivid violet. Relative luminance 0.415; OKLCH L 76.0% C 0.131 H 312.1°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#CD98ED
RGBrgb(205, 152, 237)
HSLhsl(277, 70%, 76%)
HSVhsv(277, 36%, 93%)
CMYKcmyk(13.5%, 35.9%, 0%, 7.1%)
CIE-LABlab(70.56, 35.02, -35.20)
CIE-LCHlch(70.56, 49.65, 314.85°)
OKLaboklab(76.02% 0.0876 -0.097)
OKLCHoklch(76.02% 0.131 312.1)
XYZxyz(51.6885, 41.5509, 85.4015)
Luminance0.4155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98ED #B8ED98
analogous
#A398ED #CD98ED #ED98E3
triadic
#CD98ED #EDCD98 #98EDCD
tetradic
#CD98ED #EDA398 #B8ED98 #98E3ED
square
#CD98ED #EDA398 #B8ED98 #98E3ED
split-complementary
#CD98ED #E3ED98 #98EDA3
monochromatic
#9A30DB #B464E4 #CD98ED #E6CCF6 #F2E5FA

Accessibility & contrast

On white

2.26
#CD98ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#CD98ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98ED
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98ED#FFFFFF#000000##000000
##CD98ED1.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd98ed;
/* rgb */ color: rgb(205, 152, 237);
/* oklch */ color: oklch(76.0% 0.131 312.1);
Tailwind
colors: {
  custom: {
    50: '#ddb7f3',
    500: '#cd98ed',
    950: '#000000',
  },
}
SCSS
$custom: #cd98ed;
$custom-light: #ddb7f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98ed",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 237
  },
  "hsl": {
    "h": 277.412,
    "s": 70.248,
    "l": 76.275
  },
  "oklch": {
    "l": 0.7602,
    "c": 0.13064,
    "h": 312.1
  },
  "luminance": 0.4155
}

Semantic roles & 50–950 ramp

primary
#CD98ED
secondary
#E2F2D9
accent
#D2135B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD98ED

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

Preview Lab → · Contrast checker → · Palette generator →

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