#CF97DF#CF97DF

#CF97DF is a light, moderate purple. Relative luminance 0.407; OKLCH L 75.4% C 0.117 H 318.6°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#CF97DF
RGBrgb(207, 151, 223)
HSLhsl(287, 53%, 73%)
HSVhsv(287, 32%, 87%)
CMYKcmyk(7.2%, 32.3%, 0%, 12.5%)
CIE-LABlab(69.98, 33.32, -28.40)
CIE-LCHlch(69.98, 43.77, 319.56°)
OKLaboklab(75.45% 0.0879 -0.0775)
OKLCHoklch(75.45% 0.117 318.6)
XYZxyz(50.1162, 40.7276, 75.0189)
Luminance0.4073 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97DF #A7DF97
analogous
#AB97DF #CF97DF #DF97CB
triadic
#CF97DF #DFCF97 #97DFCF
tetradic
#CF97DF #DFAB97 #A7DF97 #97CBDF
square
#CF97DF #DFAB97 #A7DF97 #97CBDF
split-complementary
#CF97DF #CBDF97 #97DFAB
monochromatic
#A33BC0 #B968D1 #CF97DF #E5C6ED #F4E8F8

Accessibility & contrast

On white

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

On black

9.15
#CF97DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97DF
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97DF#FFFFFF#000000##000000
##CF97DF1.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA7E2
Deuteranopia (green-blind)
#9BADDD
Tritanopia (blue-blind)
#D09FB1
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cf97df;
/* rgb */ color: rgb(207, 151, 223);
/* oklch */ color: oklch(75.4% 0.117 318.6);
Tailwind
colors: {
  custom: {
    50: '#deb6e9',
    500: '#cf97df',
    950: '#000000',
  },
}
SCSS
$custom: #cf97df;
$custom-light: #deb6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97df",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 286.667,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.75448,
    "c": 0.11723,
    "h": 318.6
  },
  "luminance": 0.40726
}

Semantic roles & 50–950 ramp

primary
#CF97DF
secondary
#E0EFDC
accent
#C02548
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CF97DF

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

Preview Lab → · Contrast checker → · Palette generator →

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