#CD98FC#CD98FC

#CD98FC is a light, vivid violet. Relative luminance 0.425; OKLCH L 76.7% C 0.148 H 307.6°. Best body text is #000000 at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#CD98FC
RGBrgb(205, 152, 252)
HSLhsl(272, 94%, 79%)
HSVhsv(272, 40%, 99%)
CMYKcmyk(18.7%, 39.7%, 0%, 1.2%)
CIE-LABlab(71.19, 38.23, -42.40)
CIE-LCHlch(71.19, 57.09, 312.04°)
OKLaboklab(76.7% 0.0907 -0.1176)
OKLCHoklch(76.7% 0.149 307.6)
XYZxyz(53.9724, 42.4644, 97.4297)
Luminance0.4246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98FC #C7FC98
analogous
#9B98FC #CD98FC #FC98F9
triadic
#CD98FC #FCCD98 #98FCCD
tetradic
#CD98FC #FC9B98 #C7FC98 #98F9FC
square
#CD98FC #FC9B98 #C7FC98 #98F9FC
split-complementary
#CD98FC #F9FC98 #98FC9B
monochromatic
#9321F9 #B05DFA #CD98FC #EAD3FE #F1E1FE

Accessibility & contrast

On white

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

On black

9.49
#CD98FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98FC
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98FC#FFFFFF#000000##000000
##CD98FC1.002.219.499.49
#FFFFFF2.211.0021.0021.00
#0000009.4921.001.001.00
##0000009.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd98fc;
/* rgb */ color: rgb(205, 152, 252);
/* oklch */ color: oklch(76.7% 0.148 307.6);
Tailwind
colors: {
  custom: {
    50: '#deb7fd',
    500: '#cd98fc',
    950: '#000000',
  },
}
SCSS
$custom: #cd98fc;
$custom-light: #deb7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98fc",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 271.8,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76703,
    "c": 0.1485,
    "h": 307.6
  },
  "luminance": 0.42464
}

Semantic roles & 50–950 ramp

primary
#CD98FC
secondary
#E4F6D5
accent
#E6006C
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CD98FC

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

Preview Lab → · Contrast checker → · Palette generator →

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