#CD98FE#CD98FE

#CD98FE is a light, vivid violet. Relative luminance 0.426; OKLCH L 76.8% C 0.151 H 307.1°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#CD98FE
RGBrgb(205, 152, 254)
HSLhsl(271, 98%, 80%)
HSVhsv(271, 40%, 100%)
CMYKcmyk(19.3%, 40.2%, 0%, 0.4%)
CIE-LABlab(71.28, 38.66, -43.35)
CIE-LCHlch(71.28, 58.09, 311.73°)
OKLaboklab(76.8% 0.091 -0.1204)
OKLCHoklch(76.8% 0.151 307.1)
XYZxyz(54.2910, 42.5918, 99.1077)
Luminance0.4259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98FE #C9FE98
analogous
#9A98FE #CD98FE #FE98FC
triadic
#CD98FE #FECD98 #98FECD
tetradic
#CD98FE #FE9A98 #C9FE98 #98FCFE
square
#CD98FE #FE9A98 #C9FE98 #98FCFE
split-complementary
#CD98FE #FCFE98 #98FE9A
monochromatic
#921FFD #B05BFD #CD98FE #EAD5FF #F0E1FF

Accessibility & contrast

On white

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

On black

9.52
#CD98FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98FE
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98FE#FFFFFF#000000##000000
##CD98FE1.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd98fe;
/* rgb */ color: rgb(205, 152, 254);
/* oklch */ color: oklch(76.8% 0.151 307.1);
Tailwind
colors: {
  custom: {
    50: '#deb7ff',
    500: '#cd98fe',
    950: '#000000',
  },
}
SCSS
$custom: #cd98fe;
$custom-light: #deb7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98fe",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 271.176,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76797,
    "c": 0.15091,
    "h": 307.1
  },
  "luminance": 0.42591
}

Semantic roles & 50–950 ramp

primary
#CD98FE
secondary
#E5F7D4
accent
#E6006E
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CD98FE

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

Preview Lab → · Contrast checker → · Palette generator →

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