#CD98FA#CD98FA

#CD98FA is a light, vivid violet. Relative luminance 0.423; OKLCH L 76.6% C 0.146 H 308.2°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#CD98FA
RGBrgb(205, 152, 250)
HSLhsl(272, 91%, 79%)
HSVhsv(272, 39%, 98%)
CMYKcmyk(18%, 39.2%, 0%, 2%)
CIE-LABlab(71.10, 37.79, -41.45)
CIE-LCHlch(71.10, 56.09, 312.36°)
OKLaboklab(76.61% 0.0903 -0.1149)
OKLCHoklch(76.61% 0.146 308.2)
XYZxyz(53.6571, 42.3383, 95.7694)
Luminance0.4234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98FA #C5FA98
analogous
#9C98FA #CD98FA #FA98F6
triadic
#CD98FA #FACD98 #98FACD
tetradic
#CD98FA #FA9C98 #C5FA98 #98F6FA
square
#CD98FA #FA9C98 #C5FA98 #98F6FA
split-complementary
#CD98FA #F6FA98 #98FA9C
monochromatic
#9423F4 #B15EF7 #CD98FA #E9D2FD #F1E2FE

Accessibility & contrast

On white

2.22
#CD98FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#CD98FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98FA
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98FA#FFFFFF#000000##000000
##CD98FA1.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ACFE
Deuteranopia (green-blind)
#8FAFF7
Tritanopia (blue-blind)
#C7A7BD
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd98fa;
/* rgb */ color: rgb(205, 152, 250);
/* oklch */ color: oklch(76.6% 0.146 308.2);
Tailwind
colors: {
  custom: {
    50: '#deb7fc',
    500: '#cd98fa',
    950: '#000000',
  },
}
SCSS
$custom: #cd98fa;
$custom-light: #deb7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98fa",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 272.449,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76609,
    "c": 0.1461,
    "h": 308.2
  },
  "luminance": 0.42338
}

Semantic roles & 50–950 ramp

primary
#CD98FA
secondary
#E4F6D5
accent
#E60069
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD98FA

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

Preview Lab → · Contrast checker → · Palette generator →

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