#CF97DD#CF97DD

#CF97DD is a light, moderate purple. Relative luminance 0.406; OKLCH L 75.4% C 0.115 H 319.5°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#CF97DD
RGBrgb(207, 151, 221)
HSLhsl(288, 51%, 73%)
HSVhsv(288, 32%, 87%)
CMYKcmyk(6.3%, 31.7%, 0%, 13.3%)
CIE-LABlab(69.91, 32.92, -27.41)
CIE-LCHlch(69.91, 42.84, 320.22°)
OKLaboklab(75.37% 0.0874 -0.0748)
OKLCHoklch(75.37% 0.115 319.5)
XYZxyz(49.8481, 40.6203, 73.6072)
Luminance0.4062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97DD #A5DD97
analogous
#AC97DD #CF97DD #DD97C8
triadic
#CF97DD #DDCF97 #97DDCF
tetradic
#CF97DD #DDAC97 #A5DD97 #97C8DD
square
#CF97DD #DDAC97 #A5DD97 #97C8DD
split-complementary
#CF97DD #C8DD97 #97DDAC
monochromatic
#A33DBC #BA69CE #CF97DD #E4C5EC #F4E8F7

Accessibility & contrast

On white

2.30
#CF97DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.12
#CF97DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97DD
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97DD#FFFFFF#000000##000000
##CF97DD1.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA7E0
Deuteranopia (green-blind)
#9CADDB
Tritanopia (blue-blind)
#D09FB0
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cf97dd;
/* rgb */ color: rgb(207, 151, 221);
/* oklch */ color: oklch(75.4% 0.115 319.5);
Tailwind
colors: {
  custom: {
    50: '#deb6e7',
    500: '#cf97dd',
    950: '#000000',
  },
}
SCSS
$custom: #cf97dd;
$custom-light: #deb6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97dd",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 221
  },
  "hsl": {
    "h": 288,
    "s": 50.725,
    "l": 72.941
  },
  "oklch": {
    "l": 0.75365,
    "c": 0.11503,
    "h": 319.5
  },
  "luminance": 0.40619
}

Semantic roles & 50–950 ramp

primary
#CF97DD
secondary
#E0EFDC
accent
#BE2746
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CF97DD

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

Preview Lab → · Contrast checker → · Palette generator →

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