#CD98F9#CD98F9

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

Color values

HEX#CD98F9
RGBrgb(205, 152, 249)
HSLhsl(273, 89%, 79%)
HSVhsv(273, 39%, 98%)
CMYKcmyk(17.7%, 39%, 0%, 2.4%)
CIE-LABlab(71.06, 37.57, -40.97)
CIE-LCHlch(71.06, 55.59, 312.52°)
OKLaboklab(76.56% 0.0901 -0.1135)
OKLCHoklch(76.56% 0.145 308.4)
XYZxyz(53.5007, 42.2757, 94.9457)
Luminance0.4228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98F9 #C4F998
analogous
#9C98F9 #CD98F9 #F998F4
triadic
#CD98F9 #F9CD98 #98F9CD
tetradic
#CD98F9 #F99C98 #C4F998 #98F4F9
square
#CD98F9 #F99C98 #C4F998 #98F4F9
split-complementary
#CD98F9 #F4F998 #98F99C
monochromatic
#9524F2 #B15EF6 #CD98F9 #E9D2FC #F1E2FD

Accessibility & contrast

On white

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

On black

9.46
#CD98F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98F9
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98F9#FFFFFF#000000##000000
##CD98F91.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ACFD
Deuteranopia (green-blind)
#90AFF6
Tritanopia (blue-blind)
#C7A7BD
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd98f9;
/* rgb */ color: rgb(205, 152, 249);
/* oklch */ color: oklch(76.6% 0.145 308.4);
Tailwind
colors: {
  custom: {
    50: '#ddb7fb',
    500: '#cd98f9',
    950: '#000000',
  },
}
SCSS
$custom: #cd98f9;
$custom-light: #ddb7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98f9",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 249
  },
  "hsl": {
    "h": 272.784,
    "s": 88.991,
    "l": 78.627
  },
  "oklch": {
    "l": 0.76563,
    "c": 0.1449,
    "h": 308.4
  },
  "luminance": 0.42275
}

Semantic roles & 50–950 ramp

primary
#CD98F9
secondary
#E4F5D6
accent
#E60068
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD98F9

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

Preview Lab → · Contrast checker → · Palette generator →

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