#CD9EF8#CD9EF8

#CD9EF8 is a light, vivid violet. Relative luminance 0.442; OKLCH L 77.5% C 0.134 H 307.5°. Best body text is #000000 at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#CD9EF8
RGBrgb(205, 158, 248)
HSLhsl(271, 87%, 80%)
HSVhsv(271, 36%, 97%)
CMYKcmyk(17.3%, 36.3%, 0%, 2.7%)
CIE-LABlab(72.37, 34.09, -38.39)
CIE-LCHlch(72.37, 51.34, 311.61°)
OKLaboklab(77.54% 0.0815 -0.1061)
OKLCHoklch(77.54% 0.134 307.5)
XYZxyz(54.3437, 44.2106, 94.4594)
Luminance0.4421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9EF8 #C9F89E
analogous
#A09EF8 #CD9EF8 #F89EF6
triadic
#CD9EF8 #F8CD9E #9EF8CD
tetradic
#CD9EF8 #F8A09E #C9F89E #9EF6F8
square
#CD9EF8 #F8A09E #C9F89E #9EF6F8
split-complementary
#CD9EF8 #F6F89E #9EF8A0
monochromatic
#922CF0 #B065F4 #CD9EF8 #EAD7FC #F0E2FD

Accessibility & contrast

On white

2.13
#CD9EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.84
#CD9EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9EF8
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9EF8#FFFFFF#000000##000000
##CD9EF81.002.139.849.84
#FFFFFF2.131.0021.0021.00
#0000009.8421.001.001.00
##0000009.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CB0FB
Deuteranopia (green-blind)
#96B2F5
Tritanopia (blue-blind)
#C7ABC0
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cd9ef8;
/* rgb */ color: rgb(205, 158, 248);
/* oklch */ color: oklch(77.5% 0.134 307.5);
Tailwind
colors: {
  custom: {
    50: '#ddbbfb',
    500: '#cd9ef8',
    950: '#000000',
  },
}
SCSS
$custom: #cd9ef8;
$custom-light: #ddbbfb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9ef8",
  "rgb": {
    "r": 205,
    "g": 158,
    "b": 248
  },
  "hsl": {
    "h": 271.333,
    "s": 86.538,
    "l": 79.608
  },
  "oklch": {
    "l": 0.7754,
    "c": 0.13377,
    "h": 307.5
  },
  "luminance": 0.4421
}

Semantic roles & 50–950 ramp

primary
#CD9EF8
secondary
#E5F5D6
accent
#E3026E
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151217
muted
#838185

Preview Lab

Preview with #CD9EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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