#CD98F5#CD98F5

#CD98F5 is a light, vivid violet. Relative luminance 0.420; OKLCH L 76.4% C 0.140 H 309.6°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#CD98F5
RGBrgb(205, 152, 245)
HSLhsl(274, 82%, 78%)
HSVhsv(274, 38%, 96%)
CMYKcmyk(16.3%, 38%, 0%, 3.9%)
CIE-LABlab(70.89, 36.71, -39.06)
CIE-LCHlch(70.89, 53.60, 313.23°)
OKLaboklab(76.38% 0.0893 -0.108)
OKLCHoklch(76.38% 0.14 309.6)
XYZxyz(52.8835, 42.0288, 91.6950)
Luminance0.4203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98F5 #C0F598
analogous
#9F98F5 #CD98F5 #F598EE
triadic
#CD98F5 #F5CD98 #98F5CD
tetradic
#CD98F5 #F59F98 #C0F598 #98EEF5
square
#CD98F5 #F59F98 #C0F598 #98EEF5
split-complementary
#CD98F5 #EEF598 #98F59F
monochromatic
#9728EA #B260F0 #CD98F5 #E8D0FA #F1E3FC

Accessibility & contrast

On white

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

On black

9.41
#CD98F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98F5
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98F5#FFFFFF#000000##000000
##CD98F51.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ABF9
Deuteranopia (green-blind)
#92AEF2
Tritanopia (blue-blind)
#C8A6BB
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd98f5;
/* rgb */ color: rgb(205, 152, 245);
/* oklch */ color: oklch(76.4% 0.140 309.6);
Tailwind
colors: {
  custom: {
    50: '#ddb7f9',
    500: '#cd98f5',
    950: '#000000',
  },
}
SCSS
$custom: #cd98f5;
$custom-light: #ddb7f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98f5",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 245
  },
  "hsl": {
    "h": 274.194,
    "s": 82.301,
    "l": 77.843
  },
  "oklch": {
    "l": 0.76379,
    "c": 0.14012,
    "h": 309.6
  },
  "luminance": 0.42028
}

Semantic roles & 50–950 ramp

primary
#CD98F5
secondary
#E3F4D7
accent
#DF0764
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD98F5

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

Preview Lab → · Contrast checker → · Palette generator →

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