#EC97EF#EC97EF

#EC97EF is a light, vivid purple. Relative luminance 0.462; OKLCH L 79.1% C 0.151 H 325.7°. Best body text is #000000 at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#EC97EF
RGBrgb(236, 151, 239)
HSLhsl(298, 73%, 76%)
HSVhsv(298, 37%, 94%)
CMYKcmyk(1.3%, 36.8%, 0%, 6.3%)
CIE-LABlab(73.68, 45.31, -31.21)
CIE-LCHlch(73.68, 55.02, 325.44°)
OKLaboklab(79.13% 0.1247 -0.0851)
OKLCHoklch(79.13% 0.151 325.7)
XYZxyz(61.2373, 46.2006, 87.3365)
Luminance0.4620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC97EF #9AEF97
analogous
#C097EF #EC97EF #EF97C6
triadic
#EC97EF #EFEC97 #97EFEC
tetradic
#EC97EF #EFC097 #9AEF97 #97C6EF
square
#EC97EF #EFC097 #9AEF97 #97C6EF
split-complementary
#EC97EF #C6EF97 #97EFC0
monochromatic
#D92DDF #E262E7 #EC97EF #F6CCF7 #FAE4FB

Accessibility & contrast

On white

2.05
#EC97EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.24
#EC97EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC97EF
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC97EF#FFFFFF#000000##000000
##EC97EF1.002.0510.2410.24
#FFFFFF2.051.0021.0021.00
#00000010.2421.001.001.00
##00000010.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FAEF2
Deuteranopia (green-blind)
#A5B9EC
Tritanopia (blue-blind)
#F0A0B8
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #ec97ef;
/* rgb */ color: rgb(236, 151, 239);
/* oklch */ color: oklch(79.1% 0.151 325.7);
Tailwind
colors: {
  custom: {
    50: '#f3b7f4',
    500: '#ec97ef',
    950: '#000000',
  },
}
SCSS
$custom: #ec97ef;
$custom-light: #f3b7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ec97ef",
  "rgb": {
    "r": 236,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 297.955,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.7913,
    "c": 0.15096,
    "h": 325.7
  },
  "luminance": 0.46198
}

Semantic roles & 50–950 ramp

primary
#EC97EF
secondary
#D9F3D8
accent
#D51017
background
#FFFBFE
surface
#FEF6FD
border
#D6D0D5
text
#171117
muted
#858085

Preview Lab

Preview with #EC97EF

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

Preview Lab → · Contrast checker → · Palette generator →

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