#EC8FE7#EC8FE7

#EC8FE7 is a light, vivid purple. Relative luminance 0.432; OKLCH L 77.6% C 0.157 H 328.9°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#EC8FE7
RGBrgb(236, 143, 231)
HSLhsl(303, 71%, 74%)
HSVhsv(303, 39%, 93%)
CMYKcmyk(0%, 39.4%, 2.1%, 7.5%)
CIE-LABlab(71.72, 48.01, -29.85)
CIE-LCHlch(71.72, 56.53, 328.13°)
OKLaboklab(77.56% 0.1344 -0.0811)
OKLCHoklch(77.56% 0.157 328.9)
XYZxyz(58.8374, 43.2501, 80.8347)
Luminance0.4325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC8FE7 #8FEC94
analogous
#C38FEC #EC8FE7 #EC8FB9
triadic
#EC8FE7 #E7EC8F #8FE7EC
tetradic
#EC8FE7 #ECC38F #8FEC94 #8FB9EC
square
#EC8FE7 #ECC38F #8FEC94 #8FB9EC
split-complementary
#EC8FE7 #B9EC8F #8FECC3
monochromatic
#DA26D1 #E35BDC #EC8FE7 #F5C3F2 #FBE5F9

Accessibility & contrast

On white

2.18
#EC8FE7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.65
#EC8FE7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC8FE7
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC8FE7#FFFFFF#000000##000000
##EC8FE71.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA8EA
Deuteranopia (green-blind)
#A2B4E4
Tritanopia (blue-blind)
#F297B0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #ec8fe7;
/* rgb */ color: rgb(236, 143, 231);
/* oklch */ color: oklch(77.6% 0.157 328.9);
Tailwind
colors: {
  custom: {
    50: '#f4b2ef',
    500: '#ec8fe7',
    950: '#000000',
  },
}
SCSS
$custom: #ec8fe7;
$custom-light: #f4b2ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ec8fe7",
  "rgb": {
    "r": 236,
    "g": 143,
    "b": 231
  },
  "hsl": {
    "h": 303.226,
    "s": 70.992,
    "l": 74.314
  },
  "oklch": {
    "l": 0.77563,
    "c": 0.15704,
    "h": 328.9
  },
  "luminance": 0.43247
}

Semantic roles & 50–950 ramp

primary
#EC8FE7
secondary
#D9F2DA
accent
#D31D12
background
#FFFBFE
surface
#FEF6FD
border
#D6D0D5
text
#171116
muted
#858084

Preview Lab

Preview with #EC8FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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