#CD98EB#CD98EB

#CD98EB is a light, vivid violet. Relative luminance 0.414; OKLCH L 75.9% C 0.128 H 312.8°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#CD98EB
RGBrgb(205, 152, 235)
HSLhsl(278, 67%, 76%)
HSVhsv(278, 35%, 92%)
CMYKcmyk(12.8%, 35.3%, 0%, 7.8%)
CIE-LABlab(70.48, 34.60, -34.23)
CIE-LCHlch(70.48, 48.67, 315.30°)
OKLaboklab(75.93% 0.0871 -0.0942)
OKLCHoklch(75.93% 0.128 312.8)
XYZxyz(51.3980, 41.4346, 83.8712)
Luminance0.4143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98EB #B6EB98
analogous
#A398EB #CD98EB #EB98E0
triadic
#CD98EB #EBCD98 #98EBCD
tetradic
#CD98EB #EBA398 #B6EB98 #98E0EB
square
#CD98EB #EBA398 #B6EB98 #98E0EB
split-complementary
#CD98EB #E0EB98 #98EBA3
monochromatic
#9B32D7 #B465E1 #CD98EB #E6CBF5 #F3E5FA

Accessibility & contrast

On white

2.26
#CD98EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#CD98EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98EB
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98EB#FFFFFF#000000##000000
##CD98EB1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA9EE
Deuteranopia (green-blind)
#96AEE9
Tritanopia (blue-blind)
#CAA3B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd98eb;
/* rgb */ color: rgb(205, 152, 235);
/* oklch */ color: oklch(75.9% 0.128 312.8);
Tailwind
colors: {
  custom: {
    50: '#ddb7f1',
    500: '#cd98eb',
    950: '#000000',
  },
}
SCSS
$custom: #cd98eb;
$custom-light: #ddb7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98eb",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 278.313,
    "s": 67.48,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75932,
    "c": 0.12828,
    "h": 312.8
  },
  "luminance": 0.41434
}

Semantic roles & 50–950 ramp

primary
#CD98EB
secondary
#E2F2D9
accent
#CF1659
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD98EB

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

Preview Lab → · Contrast checker → · Palette generator →

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