#CF97DC#CF97DC

#CF97DC is a light, moderate purple. Relative luminance 0.406; OKLCH L 75.3% C 0.114 H 319.9°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#CF97DC
RGBrgb(207, 151, 220)
HSLhsl(289, 50%, 73%)
HSVhsv(289, 31%, 86%)
CMYKcmyk(5.9%, 31.4%, 0%, 13.7%)
CIE-LABlab(69.87, 32.72, -26.92)
CIE-LCHlch(69.87, 42.37, 320.56°)
OKLaboklab(75.33% 0.0871 -0.0734)
OKLCHoklch(75.33% 0.114 319.9)
XYZxyz(49.7153, 40.5672, 72.9076)
Luminance0.4057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97DC #A4DC97
analogous
#AD97DC #CF97DC #DC97C6
triadic
#CF97DC #DCCF97 #97DCCF
tetradic
#CF97DC #DCAD97 #A4DC97 #97C6DC
square
#CF97DC #DCAD97 #A4DC97 #97C6DC
split-complementary
#CF97DC #C6DC97 #97DCAD
monochromatic
#A33FBA #BA69CD #CF97DC #E4C5EB #F4E8F7

Accessibility & contrast

On white

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

On black

9.11
#CF97DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97DC
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97DC#FFFFFF#000000##000000
##CF97DC1.002.309.119.11
#FFFFFF2.301.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cf97dc;
/* rgb */ color: rgb(207, 151, 220);
/* oklch */ color: oklch(75.3% 0.114 319.9);
Tailwind
colors: {
  custom: {
    50: '#deb6e7',
    500: '#cf97dc',
    950: '#000000',
  },
}
SCSS
$custom: #cf97dc;
$custom-light: #deb6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97dc",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 288.696,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.75325,
    "c": 0.11392,
    "h": 319.9
  },
  "luminance": 0.40566
}

Semantic roles & 50–950 ramp

primary
#CF97DC
secondary
#E0EEDD
accent
#BD2944
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CF97DC

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

Preview Lab → · Contrast checker → · Palette generator →

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