#CD98FD#CD98FD

#CD98FD is a light, vivid violet. Relative luminance 0.425; OKLCH L 76.8% C 0.150 H 307.4°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#CD98FD
RGBrgb(205, 152, 253)
HSLhsl(271, 96%, 79%)
HSVhsv(271, 40%, 99%)
CMYKcmyk(19%, 39.9%, 0%, 0.8%)
CIE-LABlab(71.23, 38.44, -42.87)
CIE-LCHlch(71.23, 57.59, 311.88°)
OKLaboklab(76.75% 0.0908 -0.119)
OKLCHoklch(76.75% 0.15 307.4)
XYZxyz(54.1312, 42.5280, 98.2665)
Luminance0.4253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98FD #C8FD98
analogous
#9B98FD #CD98FD #FD98FB
triadic
#CD98FD #FDCD98 #98FDCD
tetradic
#CD98FD #FD9B98 #C8FD98 #98FBFD
square
#CD98FD #FD9B98 #C8FD98 #98FBFD
split-complementary
#CD98FD #FBFD98 #98FD9B
monochromatic
#9320FB #B05CFC #CD98FD #EAD4FE #F0E1FE

Accessibility & contrast

On white

2.21
#CD98FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.51
#CD98FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98FD
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98FD#FFFFFF#000000##000000
##CD98FD1.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ACFF
Deuteranopia (green-blind)
#8EAFFA
Tritanopia (blue-blind)
#C6A8BF
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd98fd;
/* rgb */ color: rgb(205, 152, 253);
/* oklch */ color: oklch(76.8% 0.150 307.4);
Tailwind
colors: {
  custom: {
    50: '#deb7fe',
    500: '#cd98fd',
    950: '#000000',
  },
}
SCSS
$custom: #cd98fd;
$custom-light: #deb7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98fd",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 271.485,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.7675,
    "c": 0.1497,
    "h": 307.4
  },
  "luminance": 0.42527
}

Semantic roles & 50–950 ramp

primary
#CD98FD
secondary
#E5F7D4
accent
#E6006D
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CD98FD

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

Preview Lab → · Contrast checker → · Palette generator →

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