#CD97FC#CD97FC

#CD97FC is a light, vivid violet. Relative luminance 0.421; OKLCH L 76.5% C 0.150 H 307.8°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#CD97FC
RGBrgb(205, 151, 252)
HSLhsl(272, 94%, 79%)
HSVhsv(272, 40%, 99%)
CMYKcmyk(18.7%, 40.1%, 0%, 1.2%)
CIE-LABlab(70.97, 38.77, -42.75)
CIE-LCHlch(70.97, 57.71, 312.21°)
OKLaboklab(76.54% 0.092 -0.1186)
OKLCHoklch(76.54% 0.15 307.8)
XYZxyz(53.8108, 42.1412, 97.3759)
Luminance0.4214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97FC #C6FC97
analogous
#9B97FC #CD97FC #FC97F9
triadic
#CD97FC #FCCD97 #97FCCD
tetradic
#CD97FC #FC9B97 #C6FC97 #97F9FC
square
#CD97FC #FC9B97 #C6FC97 #97F9FC
split-complementary
#CD97FC #F9FC97 #97FC9B
monochromatic
#9420F9 #B05CFA #CD97FC #EAD2FE #F1E1FE

Accessibility & contrast

On white

2.23
#CD97FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#CD97FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97FC
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97FC#FFFFFF#000000##000000
##CD97FC1.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ABFF
Deuteranopia (green-blind)
#8EAEF9
Tritanopia (blue-blind)
#C7A6BE
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd97fc;
/* rgb */ color: rgb(205, 151, 252);
/* oklch */ color: oklch(76.5% 0.150 307.8);
Tailwind
colors: {
  custom: {
    50: '#deb6fd',
    500: '#cd97fc',
    950: '#000000',
  },
}
SCSS
$custom: #cd97fc;
$custom-light: #deb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97fc",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 272.079,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76535,
    "c": 0.15014,
    "h": 307.8
  },
  "luminance": 0.42141
}

Semantic roles & 50–950 ramp

primary
#CD97FC
secondary
#E4F6D5
accent
#E6006B
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CD97FC

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

Preview Lab → · Contrast checker → · Palette generator →

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