#CD98F4#CD98F4

#CD98F4 is a light, vivid violet. Relative luminance 0.420; OKLCH L 76.3% C 0.139 H 309.9°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#CD98F4
RGBrgb(205, 152, 244)
HSLhsl(275, 81%, 78%)
HSVhsv(275, 38%, 96%)
CMYKcmyk(16%, 37.7%, 0%, 4.3%)
CIE-LABlab(70.85, 36.50, -38.58)
CIE-LCHlch(70.85, 53.11, 313.41°)
OKLaboklab(76.33% 0.0891 -0.1066)
OKLCHoklch(76.33% 0.139 309.9)
XYZxyz(52.7312, 41.9680, 90.8931)
Luminance0.4197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98F4 #BFF498
analogous
#9F98F4 #CD98F4 #F498ED
triadic
#CD98F4 #F4CD98 #98F4CD
tetradic
#CD98F4 #F49F98 #BFF498 #98EDF4
square
#CD98F4 #F49F98 #BFF498 #98EDF4
split-complementary
#CD98F4 #EDF498 #98F49F
monochromatic
#9729E8 #B261EE #CD98F4 #E8CFFA #F2E3FC

Accessibility & contrast

On white

2.24
#CD98F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.39
#CD98F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98F4
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98F4#FFFFFF#000000##000000
##CD98F41.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#86ABF7
Deuteranopia (green-blind)
#92AEF1
Tritanopia (blue-blind)
#C8A5BB
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd98f4;
/* rgb */ color: rgb(205, 152, 244);
/* oklch */ color: oklch(76.3% 0.139 309.9);
Tailwind
colors: {
  custom: {
    50: '#ddb7f8',
    500: '#cd98f4',
    950: '#000000',
  },
}
SCSS
$custom: #cd98f4;
$custom-light: #ddb7f8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98f4",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 244
  },
  "hsl": {
    "h": 274.565,
    "s": 80.702,
    "l": 77.647
  },
  "oklch": {
    "l": 0.76333,
    "c": 0.13893,
    "h": 309.9
  },
  "luminance": 0.41967
}

Semantic roles & 50–950 ramp

primary
#CD98F4
secondary
#E3F4D7
accent
#DD0863
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD98F4

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

Preview Lab → · Contrast checker → · Palette generator →

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