#CD98F6#CD98F6

#CD98F6 is a light, vivid violet. Relative luminance 0.421; OKLCH L 76.4% C 0.141 H 309.3°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#CD98F6
RGBrgb(205, 152, 246)
HSLhsl(274, 84%, 78%)
HSVhsv(274, 38%, 96%)
CMYKcmyk(16.7%, 38.2%, 0%, 3.5%)
CIE-LABlab(70.93, 36.93, -39.54)
CIE-LCHlch(70.93, 54.10, 313.05°)
OKLaboklab(76.42% 0.0895 -0.1094)
OKLCHoklch(76.42% 0.141 309.3)
XYZxyz(53.0366, 42.0901, 92.5011)
Luminance0.4209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98F6 #C1F698
analogous
#9E98F6 #CD98F6 #F698F0
triadic
#CD98F6 #F6CD98 #98F6CD
tetradic
#CD98F6 #F69E98 #C1F698 #98F0F6
square
#CD98F6 #F69E98 #C1F698 #98F0F6
split-complementary
#CD98F6 #F0F698 #98F69E
monochromatic
#9627EC #B260F1 #CD98F6 #E8D0FB #F1E3FD

Accessibility & contrast

On white

2.23
#CD98F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#CD98F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98F6
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98F6#FFFFFF#000000##000000
##CD98F61.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ABFA
Deuteranopia (green-blind)
#91AEF3
Tritanopia (blue-blind)
#C8A6BC
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd98f6;
/* rgb */ color: rgb(205, 152, 246);
/* oklch */ color: oklch(76.4% 0.141 309.3);
Tailwind
colors: {
  custom: {
    50: '#ddb7f9',
    500: '#cd98f6',
    950: '#000000',
  },
}
SCSS
$custom: #cd98f6;
$custom-light: #ddb7f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98f6",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 246
  },
  "hsl": {
    "h": 273.83,
    "s": 83.929,
    "l": 78.039
  },
  "oklch": {
    "l": 0.76424,
    "c": 0.14132,
    "h": 309.3
  },
  "luminance": 0.42089
}

Semantic roles & 50–950 ramp

primary
#CD98F6
secondary
#E4F4D7
accent
#E00565
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD98F6

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

Preview Lab → · Contrast checker → · Palette generator →

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