#EC97FD#EC97FD

#EC97FD is a light, vivid purple. Relative luminance 0.471; OKLCH L 79.7% C 0.165 H 320.8°. Best body text is #000000 at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#EC97FD
RGBrgb(236, 151, 253)
HSLhsl(290, 96%, 79%)
HSVhsv(290, 40%, 99%)
CMYKcmyk(6.7%, 40.3%, 0%, 0.8%)
CIE-LABlab(74.23, 47.93, -37.96)
CIE-LCHlch(74.23, 61.14, 321.62°)
OKLaboklab(79.73% 0.1277 -0.1043)
OKLCHoklch(79.73% 0.165 320.8)
XYZxyz(63.3862, 47.0601, 98.6540)
Luminance0.4706 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC97FD #A8FD97
analogous
#B997FD #EC97FD #FD97DB
triadic
#EC97FD #FDEC97 #97FDEC
tetradic
#EC97FD #FDB997 #A8FD97 #97DBFD
square
#EC97FD #FDB997 #A8FD97 #97DBFD
split-complementary
#EC97FD #DBFD97 #97FDB9
monochromatic
#D61FFB #E15BFC #EC97FD #F7D3FE #FAE1FE

Accessibility & contrast

On white

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

On black

10.41
#EC97FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC97FD
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC97FD#FFFFFF#000000##000000
##EC97FD1.002.0210.4110.41
#FFFFFF2.021.0021.0021.00
#00000010.4121.001.001.00
##00000010.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ec97fd;
/* rgb */ color: rgb(236, 151, 253);
/* oklch */ color: oklch(79.7% 0.165 320.8);
Tailwind
colors: {
  custom: {
    50: '#f4b7fe',
    500: '#ec97fd',
    950: '#000000',
  },
}
SCSS
$custom: #ec97fd;
$custom-light: #f4b7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ec97fd",
  "rgb": {
    "r": 236,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 290,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.79727,
    "c": 0.16487,
    "h": 320.8
  },
  "luminance": 0.47058
}

Semantic roles & 50–950 ramp

primary
#EC97FD
secondary
#DAF7D4
accent
#E60026
background
#FFFBFF
surface
#FEF6FF
border
#D6D0D7
text
#171118
muted
#858086

Preview Lab

Preview with #EC97FD

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

Preview Lab → · Contrast checker → · Palette generator →

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