#CF97FB#CF97FB

#CF97FB is a light, vivid violet. Relative luminance 0.424; OKLCH L 76.7% C 0.150 H 309.0°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#CF97FB
RGBrgb(207, 151, 251)
HSLhsl(274, 93%, 79%)
HSVhsv(274, 40%, 98%)
CMYKcmyk(17.5%, 39.8%, 0%, 1.6%)
CIE-LABlab(71.12, 39.12, -41.95)
CIE-LCHlch(71.12, 57.36, 313.00°)
OKLaboklab(76.68% 0.0942 -0.1163)
OKLCHoklch(76.68% 0.15 309)
XYZxyz(54.2081, 42.3643, 96.5695)
Luminance0.4236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97FB #C3FB97
analogous
#9D97FB #CF97FB #FB97F5
triadic
#CF97FB #FBCF97 #97FBCF
tetradic
#CF97FB #FB9D97 #C3FB97 #97F5FB
square
#CF97FB #FB9D97 #C3FB97 #97F5FB
split-complementary
#CF97FB #F5FB97 #97FB9D
monochromatic
#9921F6 #B45CF9 #CF97FB #EAD2FD #F1E2FE

Accessibility & contrast

On white

2.22
#CF97FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#CF97FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97FB
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97FB#FFFFFF#000000##000000
##CF97FB1.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ACFF
Deuteranopia (green-blind)
#8FAFF8
Tritanopia (blue-blind)
#C9A6BD
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cf97fb;
/* rgb */ color: rgb(207, 151, 251);
/* oklch */ color: oklch(76.7% 0.150 309.0);
Tailwind
colors: {
  custom: {
    50: '#dfb6fd',
    500: '#cf97fb',
    950: '#000000',
  },
}
SCSS
$custom: #cf97fb;
$custom-light: #dfb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97fb",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 273.6,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76682,
    "c": 0.14962,
    "h": 309
  },
  "luminance": 0.42364
}

Semantic roles & 50–950 ramp

primary
#CF97FB
secondary
#E4F6D5
accent
#E60065
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CF97FB

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

Preview Lab → · Contrast checker → · Palette generator →

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