#CF97EF#CF97EF

#CF97EF is a light, vivid violet. Relative luminance 0.416; OKLCH L 76.1% C 0.136 H 312.6°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#CF97EF
RGBrgb(207, 151, 239)
HSLhsl(278, 73%, 76%)
HSVhsv(278, 37%, 94%)
CMYKcmyk(13.4%, 36.8%, 0%, 6.3%)
CIE-LABlab(70.62, 36.58, -36.19)
CIE-LCHlch(70.62, 51.46, 315.30°)
OKLaboklab(76.13% 0.0917 -0.0997)
OKLCHoklch(76.13% 0.136 312.6)
XYZxyz(52.3761, 41.6315, 86.9212)
Luminance0.4163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97EF #B7EF97
analogous
#A397EF #CF97EF #EF97E3
triadic
#CF97EF #EFCF97 #97EFCF
tetradic
#CF97EF #EFA397 #B7EF97 #97E3EF
square
#CF97EF #EFA397 #B7EF97 #97E3EF
split-complementary
#CF97EF #E3EF97 #97EFA3
monochromatic
#9E2DDF #B762E7 #CF97EF #E7CCF7 #F3E4FB

Accessibility & contrast

On white

2.25
#CF97EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#CF97EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97EF
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97EF#FFFFFF#000000##000000
##CF97EF1.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#87AAF2
Deuteranopia (green-blind)
#95AEEC
Tritanopia (blue-blind)
#CCA3B8
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cf97ef;
/* rgb */ color: rgb(207, 151, 239);
/* oklch */ color: oklch(76.1% 0.136 312.6);
Tailwind
colors: {
  custom: {
    50: '#dfb6f4',
    500: '#cf97ef',
    950: '#000000',
  },
}
SCSS
$custom: #cf97ef;
$custom-light: #dfb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97ef",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 278.182,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.76134,
    "c": 0.13551,
    "h": 312.6
  },
  "luminance": 0.41631
}

Semantic roles & 50–950 ramp

primary
#CF97EF
secondary
#E2F3D8
accent
#D51058
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CF97EF

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

Preview Lab → · Contrast checker → · Palette generator →

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