#EC97F2#EC97F2

#EC97F2 is a light, vivid purple. Relative luminance 0.464; OKLCH L 79.3% C 0.154 H 324.6°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#EC97F2
RGBrgb(236, 151, 242)
HSLhsl(296, 78%, 77%)
HSVhsv(296, 38%, 95%)
CMYKcmyk(2.5%, 37.6%, 0%, 5.1%)
CIE-LABlab(73.79, 45.86, -32.67)
CIE-LCHlch(73.79, 56.31, 324.54°)
OKLaboklab(79.26% 0.1254 -0.0892)
OKLCHoklch(79.26% 0.154 324.6)
XYZxyz(61.6841, 46.3793, 89.6900)
Luminance0.4638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC97F2 #9DF297
analogous
#BF97F2 #EC97F2 #F297CB
triadic
#EC97F2 #F2EC97 #97F2EC
tetradic
#EC97F2 #F2BF97 #9DF297 #97CBF2
square
#EC97F2 #F2BF97 #9DF297 #97CBF2
split-complementary
#EC97F2 #CBF297 #97F2BF
monochromatic
#D82AE4 #E261EB #EC97F2 #F6CDF9 #FAE4FC

Accessibility & contrast

On white

2.04
#EC97F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.28
#EC97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC97F2
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC97F2#FFFFFF#000000##000000
##EC97F21.002.0410.2810.28
#FFFFFF2.041.0021.0021.00
#00000010.2821.001.001.00
##00000010.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EAFF5
Deuteranopia (green-blind)
#A4B9EF
Tritanopia (blue-blind)
#F0A0B9
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #ec97f2;
/* rgb */ color: rgb(236, 151, 242);
/* oklch */ color: oklch(79.3% 0.154 324.6);
Tailwind
colors: {
  custom: {
    50: '#f3b7f6',
    500: '#ec97f2',
    950: '#000000',
  },
}
SCSS
$custom: #ec97f2;
$custom-light: #f3b7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec97f2",
  "rgb": {
    "r": 236,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 296.044,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.79255,
    "c": 0.15388,
    "h": 324.6
  },
  "luminance": 0.46377
}

Semantic roles & 50–950 ramp

primary
#EC97F2
secondary
#D9F3D8
accent
#DA0B19
background
#FFFBFF
surface
#FEF6FE
border
#D6D0D6
text
#171117
muted
#858085

Preview Lab

Preview with #EC97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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