#EC97FF#EC97FF

#EC97FF is a light, vivid purple. Relative luminance 0.472; OKLCH L 79.8% C 0.167 H 320.1°. Best body text is #000000 at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#EC97FF
RGBrgb(236, 151, 255)
HSLhsl(289, 100%, 80%)
HSVhsv(289, 41%, 100%)
CMYKcmyk(7.5%, 40.8%, 0%, 0%)
CIE-LABlab(74.31, 48.31, -38.92)
CIE-LCHlch(74.31, 62.03, 321.14°)
OKLaboklab(79.82% 0.1281 -0.107)
OKLCHoklch(79.82% 0.167 320.1)
XYZxyz(63.7064, 47.1882, 100.3408)
Luminance0.4719 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC97FF #AAFF97
analogous
#B897FF #EC97FF #FF97DE
triadic
#EC97FF #FFEC97 #97FFEC
tetradic
#EC97FF #FFB897 #AAFF97 #97DEFF
square
#EC97FF #FFB897 #AAFF97 #97DEFF
split-complementary
#EC97FF #DEFF97 #97FFB8
monochromatic
#D61DFF #E15AFF #EC97FF #F7D4FF #F9E0FF

Accessibility & contrast

On white

2.01
#EC97FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.44
#EC97FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC97FF
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC97FF#FFFFFF#000000##000000
##EC97FF1.002.0110.4410.44
#FFFFFF2.011.0021.0021.00
#00000010.4421.001.001.00
##00000010.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#89B1FF
Deuteranopia (green-blind)
#9FBAFC
Tritanopia (blue-blind)
#EDA4BF
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ec97ff;
/* rgb */ color: rgb(236, 151, 255);
/* oklch */ color: oklch(79.8% 0.167 320.1);
Tailwind
colors: {
  custom: {
    50: '#f4b7ff',
    500: '#ec97ff',
    950: '#000000',
  },
}
SCSS
$custom: #ec97ff;
$custom-light: #f4b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ec97ff",
  "rgb": {
    "r": 236,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 289.038,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.79816,
    "c": 0.16691,
    "h": 320.1
  },
  "luminance": 0.47186
}

Semantic roles & 50–950 ramp

primary
#EC97FF
secondary
#DAF7D4
accent
#E6002A
background
#FFFBFF
surface
#FEF6FF
border
#D6D0D7
text
#171118
muted
#858086

Preview Lab

Preview with #EC97FF

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

Preview Lab → · Contrast checker → · Palette generator →

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