#CD97FE#CD97FE

#CD97FE is a light, vivid violet. Relative luminance 0.423; OKLCH L 76.6% C 0.153 H 307.3°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#CD97FE
RGBrgb(205, 151, 254)
HSLhsl(271, 98%, 79%)
HSVhsv(271, 41%, 100%)
CMYKcmyk(19.3%, 40.6%, 0%, 0.4%)
CIE-LABlab(71.06, 39.21, -43.70)
CIE-LCHlch(71.06, 58.71, 311.90°)
OKLaboklab(76.63% 0.0924 -0.1214)
OKLCHoklch(76.63% 0.153 307.3)
XYZxyz(54.1293, 42.2686, 99.0538)
Luminance0.4227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97FE #C8FE97
analogous
#9A97FE #CD97FE #FE97FC
triadic
#CD97FE #FECD97 #97FECD
tetradic
#CD97FE #FE9A97 #C8FE97 #97FCFE
square
#CD97FE #FE9A97 #C8FE97 #97FCFE
split-complementary
#CD97FE #FCFE97 #97FE9A
monochromatic
#931EFD #B05AFD #CD97FE #EAD4FF #F0E1FF

Accessibility & contrast

On white

2.22
#CD97FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#CD97FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97FE
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97FE#FFFFFF#000000##000000
##CD97FE1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ACFF
Deuteranopia (green-blind)
#8DAFFB
Tritanopia (blue-blind)
#C6A7BF
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd97fe;
/* rgb */ color: rgb(205, 151, 254);
/* oklch */ color: oklch(76.6% 0.153 307.3);
Tailwind
colors: {
  custom: {
    50: '#deb6ff',
    500: '#cd97fe',
    950: '#000000',
  },
}
SCSS
$custom: #cd97fe;
$custom-light: #deb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97fe",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 271.456,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.7663,
    "c": 0.15254,
    "h": 307.3
  },
  "luminance": 0.42268
}

Semantic roles & 50–950 ramp

primary
#CD97FE
secondary
#E5F7D4
accent
#E6006D
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CD97FE

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

Preview Lab → · Contrast checker → · Palette generator →

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