#CD97ED#CD97ED

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

Color values

HEX#CD97ED
RGBrgb(205, 151, 237)
HSLhsl(278, 70%, 76%)
HSVhsv(278, 36%, 93%)
CMYKcmyk(13.5%, 36.3%, 0%, 7.1%)
CIE-LABlab(70.34, 35.56, -35.55)
CIE-LCHlch(70.34, 50.28, 315.01°)
OKLaboklab(75.85% 0.089 -0.0979)
OKLCHoklch(75.85% 0.132 312.3)
XYZxyz(51.5269, 41.2276, 85.3477)
Luminance0.4123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97ED #B7ED97
analogous
#A297ED #CD97ED #ED97E2
triadic
#CD97ED #EDCD97 #97EDCD
tetradic
#CD97ED #EDA297 #B7ED97 #97E2ED
square
#CD97ED #EDA297 #B7ED97 #97E2ED
split-complementary
#CD97ED #E2ED97 #97EDA2
monochromatic
#9B2FDB #B463E4 #CD97ED #E6CBF6 #F2E5FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD97ED#FFFFFF#000000##000000
##CD97ED1.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)
#88A9F0
Deuteranopia (green-blind)
#94ADEA
Tritanopia (blue-blind)
#CAA3B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd97ed;
/* rgb */ color: rgb(205, 151, 237);
/* oklch */ color: oklch(75.8% 0.132 312.3);
Tailwind
colors: {
  custom: {
    50: '#ddb6f3',
    500: '#cd97ed',
    950: '#000000',
  },
}
SCSS
$custom: #cd97ed;
$custom-light: #ddb6f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97ed",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 237
  },
  "hsl": {
    "h": 277.674,
    "s": 70.492,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75849,
    "c": 0.13233,
    "h": 312.3
  },
  "luminance": 0.41227
}

Semantic roles & 50–950 ramp

primary
#CD97ED
secondary
#E2F2D9
accent
#D3135A
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD97ED

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

Preview Lab → · Contrast checker → · Palette generator →

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