#CF97EB#CF97EB

#CF97EB is a light, vivid purple. Relative luminance 0.414; OKLCH L 76.0% C 0.131 H 314.0°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#CF97EB
RGBrgb(207, 151, 235)
HSLhsl(280, 68%, 76%)
HSVhsv(280, 36%, 92%)
CMYKcmyk(11.9%, 35.7%, 0%, 7.8%)
CIE-LABlab(70.45, 35.75, -34.26)
CIE-LCHlch(70.45, 49.51, 316.22°)
OKLaboklab(75.96% 0.0908 -0.0942)
OKLCHoklch(75.96% 0.131 314)
XYZxyz(51.7917, 41.3978, 83.8434)
Luminance0.4140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97EB #B3EB97
analogous
#A597EB #CF97EB #EB97DD
triadic
#CF97EB #EBCF97 #97EBCF
tetradic
#CF97EB #EBA597 #B3EB97 #97DDEB
square
#CF97EB #EBA597 #B3EB97 #97DDEB
split-complementary
#CF97EB #DDEB97 #97EBA5
monochromatic
#A030D7 #B764E1 #CF97EB #E7CAF5 #F3E5FA

Accessibility & contrast

On white

2.26
#CF97EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#CF97EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97EB
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97EB#FFFFFF#000000##000000
##CF97EB1.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A9EE
Deuteranopia (green-blind)
#96AEE8
Tritanopia (blue-blind)
#CDA2B6
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cf97eb;
/* rgb */ color: rgb(207, 151, 235);
/* oklch */ color: oklch(76.0% 0.131 314.0);
Tailwind
colors: {
  custom: {
    50: '#dfb6f1',
    500: '#cf97eb',
    950: '#000000',
  },
}
SCSS
$custom: #cf97eb;
$custom-light: #dfb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97eb",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 280,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75958,
    "c": 0.13087,
    "h": 314
  },
  "luminance": 0.41397
}

Semantic roles & 50–950 ramp

primary
#CF97EB
secondary
#E1F2D9
accent
#D01654
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CF97EB

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

Preview Lab → · Contrast checker → · Palette generator →

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