#EC97EC#EC97EC

#EC97EC is a light, vivid purple. Relative luminance 0.460; OKLCH L 79.0% C 0.148 H 326.9°. Best body text is #000000 at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#EC97EC
RGBrgb(236, 151, 236)
HSLhsl(300, 69%, 76%)
HSVhsv(300, 36%, 93%)
CMYKcmyk(0%, 36%, 0%, 7.5%)
CIE-LABlab(73.56, 44.77, -29.75)
CIE-LCHlch(73.56, 53.75, 326.39°)
OKLaboklab(79.01% 0.124 -0.0809)
OKLCHoklch(79.01% 0.148 326.9)
XYZxyz(60.7978, 46.0248, 85.0218)
Luminance0.4602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC97EC #97EC97
analogous
#C197EC #EC97EC #EC97C1
triadic
#EC97EC #ECEC97 #97ECEC
tetradic
#EC97EC #ECC197 #97EC97 #97C1EC
square
#EC97EC #ECC197 #97EC97 #97C1EC
split-complementary
#EC97EC #C1EC97 #97ECC1
monochromatic
#D930D9 #E363E3 #EC97EC #F5CBF5 #FAE5FA

Accessibility & contrast

On white

2.06
#EC97EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.20
#EC97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC97EC
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC97EC#FFFFFF#000000##000000
##EC97EC1.002.0610.2010.20
#FFFFFF2.061.0021.0021.00
#00000010.2021.001.001.00
##00000010.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#91AEEF
Deuteranopia (green-blind)
#A6B9E9
Tritanopia (blue-blind)
#F19FB7
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #ec97ec;
/* rgb */ color: rgb(236, 151, 236);
/* oklch */ color: oklch(79.0% 0.148 326.9);
Tailwind
colors: {
  custom: {
    50: '#f3b7f2',
    500: '#ec97ec',
    950: '#000000',
  },
}
SCSS
$custom: #ec97ec;
$custom-light: #f3b7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ec97ec",
  "rgb": {
    "r": 236,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 300,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.79007,
    "c": 0.14808,
    "h": 326.9
  },
  "luminance": 0.46022
}

Semantic roles & 50–950 ramp

primary
#EC97EC
secondary
#D9F2D9
accent
#D11414
background
#FFFBFE
surface
#FEF6FD
border
#D6D0D5
text
#171117
muted
#858085

Preview Lab

Preview with #EC97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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