#CF97FE#CF97FE

#CF97FE is a light, vivid violet. Relative luminance 0.426; OKLCH L 76.8% C 0.153 H 308.2°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#CF97FE
RGBrgb(207, 151, 254)
HSLhsl(273, 98%, 79%)
HSVhsv(273, 41%, 100%)
CMYKcmyk(18.5%, 40.6%, 0%, 0.4%)
CIE-LABlab(71.25, 39.77, -43.37)
CIE-LCHlch(71.25, 58.85, 312.52°)
OKLaboklab(76.82% 0.0947 -0.1204)
OKLCHoklch(76.82% 0.153 308.2)
XYZxyz(54.6847, 42.5550, 99.0798)
Luminance0.4255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97FE #C6FE97
analogous
#9C97FE #CF97FE #FE97FA
triadic
#CF97FE #FECF97 #97FECF
tetradic
#CF97FE #FE9C97 #C6FE97 #97FAFE
square
#CF97FE #FE9C97 #C6FE97 #97FAFE
split-complementary
#CF97FE #FAFE97 #97FE9C
monochromatic
#971EFD #B35AFD #CF97FE #EBD4FF #F1E1FF

Accessibility & contrast

On white

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

On black

9.51
#CF97FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97FE
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97FE#FFFFFF#000000##000000
##CF97FE1.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cf97fe;
/* rgb */ color: rgb(207, 151, 254);
/* oklch */ color: oklch(76.8% 0.153 308.2);
Tailwind
colors: {
  custom: {
    50: '#dfb6ff',
    500: '#cf97fe',
    950: '#000000',
  },
}
SCSS
$custom: #cf97fe;
$custom-light: #dfb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97fe",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 272.621,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76823,
    "c": 0.15318,
    "h": 308.2
  },
  "luminance": 0.42554
}

Semantic roles & 50–950 ramp

primary
#CF97FE
secondary
#E4F7D4
accent
#E60069
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CF97FE

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

Preview Lab → · Contrast checker → · Palette generator →

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