#CD97EC#CD97EC

#CD97EC is a light, vivid violet. Relative luminance 0.412; OKLCH L 75.8% C 0.131 H 312.6°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#CD97EC
RGBrgb(205, 151, 236)
HSLhsl(278, 69%, 76%)
HSVhsv(278, 36%, 93%)
CMYKcmyk(13.1%, 36%, 0%, 7.5%)
CIE-LABlab(70.29, 35.35, -35.07)
CIE-LCHlch(70.29, 49.79, 315.23°)
OKLaboklab(75.81% 0.0888 -0.0966)
OKLCHoklch(75.81% 0.131 312.6)
XYZxyz(51.3812, 41.1694, 84.5804)
Luminance0.4117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97EC #B6EC97
analogous
#A297EC #CD97EC #EC97E0
triadic
#CD97EC #ECCD97 #97ECCD
tetradic
#CD97EC #ECA297 #B6EC97 #97E0EC
square
#CD97EC #ECA297 #B6EC97 #97E0EC
split-complementary
#CD97EC #E0EC97 #97ECA2
monochromatic
#9B30D9 #B463E3 #CD97EC #E6CBF5 #F3E5FA

Accessibility & contrast

On white

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

On black

9.23
#CD97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97EC
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97EC#FFFFFF#000000##000000
##CD97EC1.002.279.239.23
#FFFFFF2.271.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A9EF
Deuteranopia (green-blind)
#95ADE9
Tritanopia (blue-blind)
#CAA3B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd97ec;
/* rgb */ color: rgb(205, 151, 236);
/* oklch */ color: oklch(75.8% 0.131 312.6);
Tailwind
colors: {
  custom: {
    50: '#ddb6f2',
    500: '#cd97ec',
    950: '#000000',
  },
}
SCSS
$custom: #cd97ec;
$custom-light: #ddb6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97ec",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 278.118,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75805,
    "c": 0.13116,
    "h": 312.6
  },
  "luminance": 0.41168
}

Semantic roles & 50–950 ramp

primary
#CD97EC
secondary
#E2F2D9
accent
#D11459
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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