#CF97EC#CF97EC

#CF97EC is a light, vivid violet. Relative luminance 0.415; OKLCH L 76.0% C 0.132 H 313.6°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#CF97EC
RGBrgb(207, 151, 236)
HSLhsl(280, 69%, 76%)
HSVhsv(280, 36%, 93%)
CMYKcmyk(12.3%, 36%, 0%, 7.5%)
CIE-LABlab(70.49, 35.95, -34.74)
CIE-LCHlch(70.49, 50.00, 315.98°)
OKLaboklab(76% 0.0911 -0.0956)
OKLCHoklch(76% 0.132 313.6)
XYZxyz(51.9366, 41.4557, 84.6064)
Luminance0.4145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97EC #B4EC97
analogous
#A497EC #CF97EC #EC97DF
triadic
#CF97EC #ECCF97 #97ECCF
tetradic
#CF97EC #ECA497 #B4EC97 #97DFEC
square
#CF97EC #ECA497 #B4EC97 #97DFEC
split-complementary
#CF97EC #DFEC97 #97ECA4
monochromatic
#9F30D9 #B763E3 #CF97EC #E7CBF5 #F3E5FA

Accessibility & contrast

On white

2.26
#CF97EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#CF97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97EC
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97EC#FFFFFF#000000##000000
##CF97EC1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A9EF
Deuteranopia (green-blind)
#96AEE9
Tritanopia (blue-blind)
#CDA2B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cf97ec;
/* rgb */ color: rgb(207, 151, 236);
/* oklch */ color: oklch(76.0% 0.132 313.6);
Tailwind
colors: {
  custom: {
    50: '#dfb6f2',
    500: '#cf97ec',
    950: '#000000',
  },
}
SCSS
$custom: #cf97ec;
$custom-light: #dfb6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97ec",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 279.529,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.76002,
    "c": 0.13202,
    "h": 313.6
  },
  "luminance": 0.41455
}

Semantic roles & 50–950 ramp

primary
#CF97EC
secondary
#E2F2D9
accent
#D11455
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CF97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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