#EC7AEB#EC7AEB

#EC7AEB is a light, vivid purple. Relative luminance 0.378; OKLCH L 74.7% C 0.195 H 327.6°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#EC7AEB
RGBrgb(236, 122, 235)
HSLhsl(301, 75%, 70%)
HSVhsv(301, 48%, 93%)
CMYKcmyk(0%, 48.3%, 0.4%, 7.5%)
CIE-LABlab(67.84, 59.15, -38.07)
CIE-LCHlch(67.84, 70.34, 327.24°)
OKLaboklab(74.72% 0.1647 -0.1044)
OKLCHoklch(74.72% 0.195 327.6)
XYZxyz(56.5461, 37.7532, 82.8898)
Luminance0.3775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7AEB #7AEC7B
analogous
#B47AEC #EC7AEB #EC7AB2
triadic
#EC7AEB #EBEC7A #7AEBEC
tetradic
#EC7AEB #ECB47A #7AEC7B #7AB2EC
square
#EC7AEB #ECB47A #7AEC7B #7AB2EC
split-complementary
#EC7AEB #B2EC7A #7AECB4
monochromatic
#CE1DCD #E444E3 #EC7AEB #F4B0F3 #FBE4FB

Accessibility & contrast

On white

2.46
#EC7AEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#EC7AEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7AEB
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7AEB#FFFFFF#000000##000000
##EC7AEB1.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#709CEF
Deuteranopia (green-blind)
#92ABE8
Tritanopia (blue-blind)
#F286A8
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ec7aeb;
/* rgb */ color: rgb(236, 122, 235);
/* oklch */ color: oklch(74.7% 0.195 327.6);
Tailwind
colors: {
  custom: {
    50: '#f4a4f2',
    500: '#ec7aeb',
    950: '#000000',
  },
}
SCSS
$custom: #ec7aeb;
$custom-light: #f4a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7aeb",
  "rgb": {
    "r": 236,
    "g": 122,
    "b": 235
  },
  "hsl": {
    "h": 300.526,
    "s": 75,
    "l": 70.196
  },
  "oklch": {
    "l": 0.74718,
    "c": 0.19496,
    "h": 327.6
  },
  "luminance": 0.3775
}

Semantic roles & 50–950 ramp

primary
#EC7AEB
secondary
#D1F1D1
accent
#D7100E
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#170F17
muted
#857F85

Preview Lab

Preview with #EC7AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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