#EC97FB#EC97FB

#EC97FB is a light, vivid purple. Relative luminance 0.469; OKLCH L 79.6% C 0.163 H 321.4°. Best body text is #000000 at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#EC97FB
RGBrgb(236, 151, 251)
HSLhsl(291, 93%, 79%)
HSVhsv(291, 40%, 98%)
CMYKcmyk(6%, 39.8%, 0%, 1.6%)
CIE-LABlab(74.15, 47.55, -37.01)
CIE-LCHlch(74.15, 60.25, 322.11°)
OKLaboklab(79.64% 0.1273 -0.1015)
OKLCHoklch(79.64% 0.163 321.4)
XYZxyz(63.0692, 46.9333, 96.9849)
Luminance0.4693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC97FB #A6FB97
analogous
#BA97FB #EC97FB #FB97D8
triadic
#EC97FB #FBEC97 #97FBEC
tetradic
#EC97FB #FBBA97 #A6FB97 #97D8FB
square
#EC97FB #FBBA97 #A6FB97 #97D8FB
split-complementary
#EC97FB #D8FB97 #97FBBA
monochromatic
#D621F6 #E15CF9 #EC97FB #F7D2FD #FAE2FE

Accessibility & contrast

On white

2.02
#EC97FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.39
#EC97FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC97FB
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC97FB#FFFFFF#000000##000000
##EC97FB1.002.0210.3910.39
#FFFFFF2.021.0021.0021.00
#00000010.3921.001.001.00
##00000010.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AB0FF
Deuteranopia (green-blind)
#A1BAF8
Tritanopia (blue-blind)
#EEA3BD
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #ec97fb;
/* rgb */ color: rgb(236, 151, 251);
/* oklch */ color: oklch(79.6% 0.163 321.4);
Tailwind
colors: {
  custom: {
    50: '#f3b7fd',
    500: '#ec97fb',
    950: '#000000',
  },
}
SCSS
$custom: #ec97fb;
$custom-light: #f3b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ec97fb",
  "rgb": {
    "r": 236,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 291,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.7964,
    "c": 0.16283,
    "h": 321.4
  },
  "luminance": 0.46931
}

Semantic roles & 50–950 ramp

primary
#EC97FB
secondary
#DAF6D5
accent
#E60022
background
#FFFBFF
surface
#FEF6FF
border
#D6D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #EC97FB

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

Preview Lab → · Contrast checker → · Palette generator →

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