#CF97FD#CF97FD

#CF97FD is a light, vivid violet. Relative luminance 0.425; OKLCH L 76.8% C 0.152 H 308.5°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#CF97FD
RGBrgb(207, 151, 253)
HSLhsl(273, 96%, 79%)
HSVhsv(273, 40%, 99%)
CMYKcmyk(18.2%, 40.3%, 0%, 0.8%)
CIE-LABlab(71.21, 39.56, -42.90)
CIE-LCHlch(71.21, 58.35, 312.68°)
OKLaboklab(76.78% 0.0945 -0.119)
OKLCHoklch(76.78% 0.152 308.5)
XYZxyz(54.5250, 42.4911, 98.2387)
Luminance0.4249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97FD #C5FD97
analogous
#9C97FD #CF97FD #FD97F8
triadic
#CF97FD #FDCF97 #97FDCF
tetradic
#CF97FD #FD9C97 #C5FD97 #97F8FD
square
#CF97FD #FD9C97 #C5FD97 #97F8FD
split-complementary
#CF97FD #F8FD97 #97FD9C
monochromatic
#981FFB #B35BFC #CF97FD #EBD3FE #F1E1FE

Accessibility & contrast

On white

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

On black

9.50
#CF97FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97FD
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97FD#FFFFFF#000000##000000
##CF97FD1.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ACFF
Deuteranopia (green-blind)
#8EAFFA
Tritanopia (blue-blind)
#C9A7BE
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cf97fd;
/* rgb */ color: rgb(207, 151, 253);
/* oklch */ color: oklch(76.8% 0.152 308.5);
Tailwind
colors: {
  custom: {
    50: '#dfb6fe',
    500: '#cf97fd',
    950: '#000000',
  },
}
SCSS
$custom: #cf97fd;
$custom-light: #dfb6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97fd",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 272.941,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76776,
    "c": 0.152,
    "h": 308.5
  },
  "luminance": 0.4249
}

Semantic roles & 50–950 ramp

primary
#CF97FD
secondary
#E4F7D4
accent
#E60068
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CF97FD

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

Preview Lab → · Contrast checker → · Palette generator →

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