#CF97FF#CF97FF

#CF97FF is a light, vivid violet. Relative luminance 0.426; OKLCH L 76.9% C 0.154 H 307.9°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#CF97FF
RGBrgb(207, 151, 255)
HSLhsl(272, 100%, 80%)
HSVhsv(272, 41%, 100%)
CMYKcmyk(18.8%, 40.8%, 0%, 0%)
CIE-LABlab(71.30, 39.99, -43.85)
CIE-LCHlch(71.30, 59.35, 312.37°)
OKLaboklab(76.87% 0.0949 -0.1218)
OKLCHoklch(76.87% 0.154 307.9)
XYZxyz(54.8453, 42.6192, 99.9254)
Luminance0.4262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97FF #C7FF97
analogous
#9B97FF #CF97FF #FF97FB
triadic
#CF97FF #FFCF97 #97FFCF
tetradic
#CF97FF #FF9B97 #C7FF97 #97FBFF
square
#CF97FF #FF9B97 #C7FF97 #97FBFF
split-complementary
#CF97FF #FBFF97 #97FF9B
monochromatic
#971DFF #B35AFF #CF97FF #EBD4FF #F1E0FF

Accessibility & contrast

On white

2.21
#CF97FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#CF97FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97FF
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97FF#FFFFFF#000000##000000
##CF97FF1.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ACFF
Deuteranopia (green-blind)
#8DAFFC
Tritanopia (blue-blind)
#C9A7BF
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cf97ff;
/* rgb */ color: rgb(207, 151, 255);
/* oklch */ color: oklch(76.9% 0.154 307.9);
Tailwind
colors: {
  custom: {
    50: '#dfb6ff',
    500: '#cf97ff',
    950: '#000000',
  },
}
SCSS
$custom: #cf97ff;
$custom-light: #dfb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97ff",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 272.308,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76871,
    "c": 0.15437,
    "h": 307.9
  },
  "luminance": 0.42619
}

Semantic roles & 50–950 ramp

primary
#CF97FF
secondary
#E4F7D4
accent
#E6006A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CF97FF

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

Preview Lab → · Contrast checker → · Palette generator →

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