#CD98E9#CD98E9

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

Color values

HEX#CD98E9
RGBrgb(205, 152, 233)
HSLhsl(279, 65%, 75%)
HSVhsv(279, 35%, 91%)
CMYKcmyk(12%, 34.8%, 0%, 8.6%)
CIE-LABlab(70.40, 34.18, -33.26)
CIE-LCHlch(70.40, 47.70, 315.78°)
OKLaboklab(75.85% 0.0866 -0.0914)
OKLCHoklch(75.85% 0.126 313.5)
XYZxyz(51.1107, 41.3197, 82.3580)
Luminance0.4132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98E9 #B4E998
analogous
#A498E9 #CD98E9 #E998DD
triadic
#CD98E9 #E9CD98 #98E9CD
tetradic
#CD98E9 #E9A498 #B4E998 #98DDE9
square
#CD98E9 #E9A498 #B4E998 #98DDE9
split-complementary
#CD98E9 #DDE998 #98E9A4
monochromatic
#9C33D3 #B566DE #CD98E9 #E5CAF4 #F3E6FA

Accessibility & contrast

On white

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

On black

9.26
#CD98E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98E9
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98E9#FFFFFF#000000##000000
##CD98E91.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BA9EC
Deuteranopia (green-blind)
#97AEE7
Tritanopia (blue-blind)
#CBA3B6
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd98e9;
/* rgb */ color: rgb(205, 152, 233);
/* oklch */ color: oklch(75.8% 0.126 313.5);
Tailwind
colors: {
  custom: {
    50: '#ddb7f0',
    500: '#cd98e9',
    950: '#000000',
  },
}
SCSS
$custom: #cd98e9;
$custom-light: #ddb7f0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98e9",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 233
  },
  "hsl": {
    "h": 279.259,
    "s": 64.8,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75845,
    "c": 0.12594,
    "h": 313.5
  },
  "luminance": 0.41319
}

Semantic roles & 50–950 ramp

primary
#CD98E9
secondary
#E2F1DA
accent
#CD1957
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD98E9

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

Preview Lab → · Contrast checker → · Palette generator →

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