#CD98FB#CD98FB

#CD98FB is a light, vivid violet. Relative luminance 0.424; OKLCH L 76.7% C 0.147 H 307.9°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#CD98FB
RGBrgb(205, 152, 251)
HSLhsl(272, 93%, 79%)
HSVhsv(272, 39%, 98%)
CMYKcmyk(18.3%, 39.4%, 0%, 1.6%)
CIE-LABlab(71.15, 38.01, -41.92)
CIE-LCHlch(71.15, 56.59, 312.20°)
OKLaboklab(76.66% 0.0905 -0.1162)
OKLCHoklch(76.66% 0.147 307.9)
XYZxyz(53.8143, 42.4012, 96.5973)
Luminance0.4240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98FB #C6FB98
analogous
#9C98FB #CD98FB #FB98F8
triadic
#CD98FB #FBCD98 #98FBCD
tetradic
#CD98FB #FB9C98 #C6FB98 #98F8FB
square
#CD98FB #FB9C98 #C6FB98 #98F8FB
split-complementary
#CD98FB #F8FB98 #98FB9C
monochromatic
#9422F6 #B05DF9 #CD98FB #EAD3FD #F1E2FE

Accessibility & contrast

On white

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

On black

9.48
#CD98FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98FB
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98FB#FFFFFF#000000##000000
##CD98FB1.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd98fb;
/* rgb */ color: rgb(205, 152, 251);
/* oklch */ color: oklch(76.7% 0.147 307.9);
Tailwind
colors: {
  custom: {
    50: '#deb7fd',
    500: '#cd98fb',
    950: '#000000',
  },
}
SCSS
$custom: #cd98fb;
$custom-light: #deb7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98fb",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 272.121,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76656,
    "c": 0.14731,
    "h": 307.9
  },
  "luminance": 0.42401
}

Semantic roles & 50–950 ramp

primary
#CD98FB
secondary
#E4F6D5
accent
#E6006B
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD98FB

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

Preview Lab → · Contrast checker → · Palette generator →

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