#CD97FB#CD97FB

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

Color values

HEX#CD97FB
RGBrgb(205, 151, 251)
HSLhsl(272, 93%, 79%)
HSVhsv(272, 40%, 98%)
CMYKcmyk(18.3%, 39.8%, 0%, 1.6%)
CIE-LABlab(70.92, 38.55, -42.27)
CIE-LCHlch(70.92, 57.21, 312.37°)
OKLaboklab(76.49% 0.0919 -0.1172)
OKLCHoklch(76.49% 0.149 308.1)
XYZxyz(53.6527, 42.0779, 96.5435)
Luminance0.4208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97FB #C5FB97
analogous
#9B97FB #CD97FB #FB97F7
triadic
#CD97FB #FBCD97 #97FBCD
tetradic
#CD97FB #FB9B97 #C5FB97 #97F7FB
square
#CD97FB #FB9B97 #C5FB97 #97F7FB
split-complementary
#CD97FB #F7FB97 #97FB9B
monochromatic
#9421F6 #B15CF9 #CD97FB #E9D2FD #F1E2FE

Accessibility & contrast

On white

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

On black

9.42
#CD97FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97FB
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97FB#FFFFFF#000000##000000
##CD97FB1.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd97fb;
/* rgb */ color: rgb(205, 151, 251);
/* oklch */ color: oklch(76.5% 0.149 308.1);
Tailwind
colors: {
  custom: {
    50: '#deb6fd',
    500: '#cd97fb',
    950: '#000000',
  },
}
SCSS
$custom: #cd97fb;
$custom-light: #deb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97fb",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 272.4,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76488,
    "c": 0.14895,
    "h": 308.1
  },
  "luminance": 0.42077
}

Semantic roles & 50–950 ramp

primary
#CD97FB
secondary
#E4F6D5
accent
#E6006A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD97FB

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

Preview Lab → · Contrast checker → · Palette generator →

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