#CF97E2#CF97E2

#CF97E2 is a light, vivid purple. Relative luminance 0.409; OKLCH L 75.6% C 0.121 H 317.3°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#CF97E2
RGBrgb(207, 151, 226)
HSLhsl(285, 56%, 74%)
HSVhsv(285, 33%, 89%)
CMYKcmyk(8.4%, 33.2%, 0%, 11.4%)
CIE-LABlab(70.10, 33.92, -29.87)
CIE-LCHlch(70.10, 45.19, 318.63°)
OKLaboklab(75.57% 0.0887 -0.0817)
OKLCHoklch(75.57% 0.121 317.3)
XYZxyz(50.5242, 40.8908, 77.1679)
Luminance0.4089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97E2 #AAE297
analogous
#AA97E2 #CF97E2 #E297D0
triadic
#CF97E2 #E2CF97 #97E2CF
tetradic
#CF97E2 #E2AA97 #AAE297 #97D0E2
square
#CF97E2 #E2AA97 #AAE297 #97D0E2
split-complementary
#CF97E2 #D0E297 #97E2AA
monochromatic
#A338C7 #B967D5 #CF97E2 #E5C7EF #F4E7F8

Accessibility & contrast

On white

2.29
#CF97E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#CF97E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97E2
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97E2#FFFFFF#000000##000000
##CF97E21.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DA8E5
Deuteranopia (green-blind)
#9AADE0
Tritanopia (blue-blind)
#CFA0B3
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cf97e2;
/* rgb */ color: rgb(207, 151, 226);
/* oklch */ color: oklch(75.6% 0.121 317.3);
Tailwind
colors: {
  custom: {
    50: '#deb6eb',
    500: '#cf97e2',
    950: '#000000',
  },
}
SCSS
$custom: #cf97e2;
$custom-light: #deb6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97e2",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 226
  },
  "hsl": {
    "h": 284.8,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.75573,
    "c": 0.1206,
    "h": 317.3
  },
  "luminance": 0.4089
}

Semantic roles & 50–950 ramp

primary
#CF97E2
secondary
#E1F0DB
accent
#C4224B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CF97E2

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

Preview Lab → · Contrast checker → · Palette generator →

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