#CD97F8#CD97F8

#CD97F8 is a light, vivid violet. Relative luminance 0.419; OKLCH L 76.3% C 0.145 H 308.9°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#CD97F8
RGBrgb(205, 151, 248)
HSLhsl(273, 87%, 78%)
HSVhsv(273, 39%, 97%)
CMYKcmyk(17.3%, 39.1%, 0%, 2.7%)
CIE-LABlab(70.80, 37.90, -40.84)
CIE-LCHlch(70.80, 55.72, 312.86°)
OKLaboklab(76.35% 0.0913 -0.1131)
OKLCHoklch(76.35% 0.145 308.9)
XYZxyz(53.1836, 41.8903, 94.0726)
Luminance0.4189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97F8 #C2F897
analogous
#9C97F8 #CD97F8 #F897F2
triadic
#CD97F8 #F8CD97 #97F8CD
tetradic
#CD97F8 #F89C97 #C2F897 #97F2F8
square
#CD97F8 #F89C97 #C2F897 #97F2F8
split-complementary
#CD97F8 #F2F897 #97F89C
monochromatic
#9624F0 #B15EF4 #CD97F8 #E9D0FC #F1E2FD

Accessibility & contrast

On white

2.24
#CD97F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#CD97F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97F8
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97F8#FFFFFF#000000##000000
##CD97F81.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ABFC
Deuteranopia (green-blind)
#8FAEF5
Tritanopia (blue-blind)
#C8A5BC
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd97f8;
/* rgb */ color: rgb(205, 151, 248);
/* oklch */ color: oklch(76.3% 0.145 308.9);
Tailwind
colors: {
  custom: {
    50: '#ddb6fb',
    500: '#cd97f8',
    950: '#000000',
  },
}
SCSS
$custom: #cd97f8;
$custom-light: #ddb6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97f8",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 248
  },
  "hsl": {
    "h": 273.402,
    "s": 87.387,
    "l": 78.235
  },
  "oklch": {
    "l": 0.76348,
    "c": 0.14536,
    "h": 308.9
  },
  "luminance": 0.4189
}

Semantic roles & 50–950 ramp

primary
#CD97F8
secondary
#E4F5D6
accent
#E40266
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD97F8

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

Preview Lab → · Contrast checker → · Palette generator →

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