#EC97FA#EC97FA

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

Color values

HEX#EC97FA
RGBrgb(236, 151, 250)
HSLhsl(292, 91%, 79%)
HSVhsv(292, 40%, 98%)
CMYKcmyk(5.6%, 39.6%, 0%, 2%)
CIE-LABlab(74.11, 47.36, -36.53)
CIE-LCHlch(74.11, 59.81, 322.36°)
OKLaboklab(79.6% 0.1271 -0.1002)
OKLCHoklch(79.6% 0.162 321.8)
XYZxyz(62.9120, 46.8705, 96.1569)
Luminance0.4687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC97FA #A5FA97
analogous
#BA97FA #EC97FA #FA97D6
triadic
#EC97FA #FAEC97 #97FAEC
tetradic
#EC97FA #FABA97 #A5FA97 #97D6FA
square
#EC97FA #FABA97 #A5FA97 #97D6FA
split-complementary
#EC97FA #D6FA97 #97FABA
monochromatic
#D722F4 #E15DF7 #EC97FA #F7D1FD #FAE2FE

Accessibility & contrast

On white

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

On black

10.37
#EC97FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC97FA
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC97FA#FFFFFF#000000##000000
##EC97FA1.002.0210.3710.37
#FFFFFF2.021.0021.0021.00
#00000010.3721.001.001.00
##00000010.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BB0FE
Deuteranopia (green-blind)
#A1BAF7
Tritanopia (blue-blind)
#EEA2BD
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #ec97fa;
/* rgb */ color: rgb(236, 151, 250);
/* oklch */ color: oklch(79.6% 0.162 321.8);
Tailwind
colors: {
  custom: {
    50: '#f3b7fc',
    500: '#ec97fa',
    950: '#000000',
  },
}
SCSS
$custom: #ec97fa;
$custom-light: #f3b7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ec97fa",
  "rgb": {
    "r": 236,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 291.515,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.79596,
    "c": 0.16183,
    "h": 321.8
  },
  "luminance": 0.46868
}

Semantic roles & 50–950 ramp

primary
#EC97FA
secondary
#DAF6D5
accent
#E60020
background
#FFFBFF
surface
#FEF6FF
border
#D6D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #EC97FA

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

Preview Lab → · Contrast checker → · Palette generator →

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