#CD98E8#CD98E8

#CD98E8 is a light, vivid violet. Relative luminance 0.413; OKLCH L 75.8% C 0.125 H 313.8°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#CD98E8
RGBrgb(205, 152, 232)
HSLhsl(280, 63%, 75%)
HSVhsv(280, 34%, 91%)
CMYKcmyk(11.6%, 34.5%, 0%, 9%)
CIE-LABlab(70.36, 33.98, -32.78)
CIE-LCHlch(70.36, 47.21, 316.03°)
OKLaboklab(75.8% 0.0864 -0.09)
OKLCHoklch(75.8% 0.125 313.8)
XYZxyz(50.9682, 41.2627, 81.6078)
Luminance0.4126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98E8 #B3E898
analogous
#A598E8 #CD98E8 #E898DB
triadic
#CD98E8 #E8CD98 #98E8CD
tetradic
#CD98E8 #E8A598 #B3E898 #98DBE8
square
#CD98E8 #E8A598 #B3E898 #98DBE8
split-complementary
#CD98E8 #DBE898 #98E8A5
monochromatic
#9C34D2 #B566DD #CD98E8 #E5CAF3 #F3E6F9

Accessibility & contrast

On white

2.27
#CD98E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#CD98E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98E8
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98E8#FFFFFF#000000##000000
##CD98E81.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BA9EB
Deuteranopia (green-blind)
#97ADE6
Tritanopia (blue-blind)
#CBA2B6
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd98e8;
/* rgb */ color: rgb(205, 152, 232);
/* oklch */ color: oklch(75.8% 0.125 313.8);
Tailwind
colors: {
  custom: {
    50: '#ddb7ef',
    500: '#cd98e8',
    950: '#000000',
  },
}
SCSS
$custom: #cd98e8;
$custom-light: #ddb7ef;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98e8",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 232
  },
  "hsl": {
    "h": 279.75,
    "s": 63.492,
    "l": 75.294
  },
  "oklch": {
    "l": 0.75802,
    "c": 0.12477,
    "h": 313.8
  },
  "luminance": 0.41262
}

Semantic roles & 50–950 ramp

primary
#CD98E8
secondary
#E2F1DA
accent
#CB1A56
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD98E8

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

Preview Lab → · Contrast checker → · Palette generator →

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