#EC7FF2#EC7FF2

#EC7FF2 is a light, vivid purple. Relative luminance 0.394; OKLCH L 75.7% C 0.193 H 325.3°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#EC7FF2
RGBrgb(236, 127, 242)
HSLhsl(297, 82%, 72%)
HSVhsv(297, 48%, 95%)
CMYKcmyk(2.5%, 47.5%, 0%, 5.1%)
CIE-LABlab(69.06, 57.97, -40.02)
CIE-LCHlch(69.06, 70.44, 325.38°)
OKLaboklab(75.72% 0.159 -0.11)
OKLCHoklch(75.72% 0.193 325.3)
XYZxyz(58.2071, 39.4253, 88.5310)
Luminance0.3942 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7FF2 #85F27F
analogous
#B37FF2 #EC7FF2 #F27FBE
triadic
#EC7FF2 #F2EC7F #7FF2EC
tetradic
#EC7FF2 #F2B37F #85F27F #7FBEF2
square
#EC7FF2 #F2B37F #85F27F #7FBEF2
split-complementary
#EC7FF2 #BEF27F #7FF2B3
monochromatic
#D517E0 #E447EC #EC7FF2 #F4B7F8 #FBE3FC

Accessibility & contrast

On white

2.36
#EC7FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#EC7FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7FF2
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7FF2#FFFFFF#000000##000000
##EC7FF21.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A0F6
Deuteranopia (green-blind)
#92ADEF
Tritanopia (blue-blind)
#F18CAD
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ec7ff2;
/* rgb */ color: rgb(236, 127, 242);
/* oklch */ color: oklch(75.7% 0.193 325.3);
Tailwind
colors: {
  custom: {
    50: '#f4a8f6',
    500: '#ec7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #ec7ff2;
$custom-light: #f4a8f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7ff2",
  "rgb": {
    "r": 236,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 296.87,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.7572,
    "c": 0.19335,
    "h": 325.3
  },
  "luminance": 0.39422
}

Semantic roles & 50–950 ramp

primary
#EC7FF2
secondary
#D8F4D7
accent
#DE0813
background
#FFFAFF
surface
#FFF4FE
border
#D7CED6
text
#171017
muted
#857F85

Preview Lab

Preview with #EC7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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