#CD98F8#CD98F8

#CD98F8 is a light, vivid violet. Relative luminance 0.422; OKLCH L 76.5% C 0.144 H 308.7°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#CD98F8
RGBrgb(205, 152, 248)
HSLhsl(273, 87%, 78%)
HSVhsv(273, 39%, 97%)
CMYKcmyk(17.3%, 38.7%, 0%, 2.7%)
CIE-LABlab(71.02, 37.36, -40.49)
CIE-LCHlch(71.02, 55.09, 312.69°)
OKLaboklab(76.52% 0.0899 -0.1121)
OKLCHoklch(76.52% 0.144 308.7)
XYZxyz(53.3452, 42.2135, 94.1265)
Luminance0.4221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98F8 #C3F898
analogous
#9D98F8 #CD98F8 #F898F3
triadic
#CD98F8 #F8CD98 #98F8CD
tetradic
#CD98F8 #F89D98 #C3F898 #98F3F8
square
#CD98F8 #F89D98 #C3F898 #98F3F8
split-complementary
#CD98F8 #F3F898 #98F89D
monochromatic
#9525F0 #B15FF4 #CD98F8 #E9D1FC #F1E2FD

Accessibility & contrast

On white

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

On black

9.44
#CD98F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98F8
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98F8#FFFFFF#000000##000000
##CD98F81.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ACFC
Deuteranopia (green-blind)
#90AFF5
Tritanopia (blue-blind)
#C8A6BC
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd98f8;
/* rgb */ color: rgb(205, 152, 248);
/* oklch */ color: oklch(76.5% 0.144 308.7);
Tailwind
colors: {
  custom: {
    50: '#ddb7fb',
    500: '#cd98f8',
    950: '#000000',
  },
}
SCSS
$custom: #cd98f8;
$custom-light: #ddb7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98f8",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 248
  },
  "hsl": {
    "h": 273.125,
    "s": 87.273,
    "l": 78.431
  },
  "oklch": {
    "l": 0.76516,
    "c": 0.14371,
    "h": 308.7
  },
  "luminance": 0.42213
}

Semantic roles & 50–950 ramp

primary
#CD98F8
secondary
#E4F5D6
accent
#E40267
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD98F8

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

Preview Lab → · Contrast checker → · Palette generator →

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