#CD97EF#CD97EF

#CD97EF is a light, vivid violet. Relative luminance 0.413; OKLCH L 75.9% C 0.135 H 311.6°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#CD97EF
RGBrgb(205, 151, 239)
HSLhsl(277, 73%, 76%)
HSVhsv(277, 37%, 94%)
CMYKcmyk(14.2%, 36.8%, 0%, 6.3%)
CIE-LABlab(70.42, 35.98, -36.52)
CIE-LCHlch(70.42, 51.27, 314.58°)
OKLaboklab(75.94% 0.0894 -0.1007)
OKLCHoklch(75.94% 0.135 311.6)
XYZxyz(51.8207, 41.3452, 86.8951)
Luminance0.4134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97EF #B9EF97
analogous
#A197EF #CD97EF #EF97E5
triadic
#CD97EF #EFCD97 #97EFCD
tetradic
#CD97EF #EFA197 #B9EF97 #97E5EF
square
#CD97EF #EFA197 #B9EF97 #97E5EF
split-complementary
#CD97EF #E5EF97 #97EFA1
monochromatic
#9A2DDF #B462E7 #CD97EF #E7CCF7 #F2E4FB

Accessibility & contrast

On white

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

On black

9.27
#CD97EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97EF
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97EF#FFFFFF#000000##000000
##CD97EF1.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A9F2
Deuteranopia (green-blind)
#93ADEC
Tritanopia (blue-blind)
#CAA3B8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd97ef;
/* rgb */ color: rgb(205, 151, 239);
/* oklch */ color: oklch(75.9% 0.135 311.6);
Tailwind
colors: {
  custom: {
    50: '#ddb6f4',
    500: '#cd97ef',
    950: '#000000',
  },
}
SCSS
$custom: #cd97ef;
$custom-light: #ddb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97ef",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 276.818,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75938,
    "c": 0.13469,
    "h": 311.6
  },
  "luminance": 0.41344
}

Semantic roles & 50–950 ramp

primary
#CD97EF
secondary
#E3F3D8
accent
#D5105C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD97EF

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

Preview Lab → · Contrast checker → · Palette generator →

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