#EC7AFB#EC7AFB

#EC7AFB is a light, highly saturated purple. Relative luminance 0.387; OKLCH L 75.5% C 0.209 H 322.8°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#EC7AFB
RGBrgb(236, 122, 251)
HSLhsl(293, 94%, 73%)
HSVhsv(293, 51%, 98%)
CMYKcmyk(6%, 51.4%, 0%, 1.6%)
CIE-LABlab(68.55, 62.00, -45.75)
CIE-LCHlch(68.55, 77.05, 323.58°)
OKLaboklab(75.47% 0.1669 -0.1265)
OKLCHoklch(75.47% 0.209 322.8)
XYZxyz(58.9624, 38.7197, 95.6159)
Luminance0.3872 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7AFB #89FB7A
analogous
#AB7AFB #EC7AFB #FB7ACA
triadic
#EC7AFB #FBEC7A #7AFBEC
tetradic
#EC7AFB #FBAB7A #89FB7A #7ACAFB
square
#EC7AFB #FBAB7A #89FB7A #7ACAFB
split-complementary
#EC7AFB #CAFB7A #7AFBAB
monochromatic
#D807F3 #E43FF9 #EC7AFB #F4B5FD #FBE1FE

Accessibility & contrast

On white

2.40
#EC7AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#EC7AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7AFB
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7AFB#FFFFFF#000000##000000
##EC7AFB1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#679FFF
Deuteranopia (green-blind)
#8AACF7
Tritanopia (blue-blind)
#EF8BB0
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ec7afb;
/* rgb */ color: rgb(236, 122, 251);
/* oklch */ color: oklch(75.5% 0.209 322.8);
Tailwind
colors: {
  custom: {
    50: '#f5a5fd',
    500: '#ec7afb',
    950: '#000000',
  },
}
SCSS
$custom: #ec7afb;
$custom-light: #f5a5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7afb",
  "rgb": {
    "r": 236,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 293.023,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.75474,
    "c": 0.20937,
    "h": 322.8
  },
  "luminance": 0.38717
}

Semantic roles & 50–950 ramp

primary
#EC7AFB
secondary
#D9F6D5
accent
#E6001B
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#171017
muted
#857F85

Preview Lab

Preview with #EC7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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