#EC7BE2#EC7BE2

#EC7BE2 is a light, vivid purple. Relative luminance 0.375; OKLCH L 74.5% C 0.186 H 330.6°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#EC7BE2
RGBrgb(236, 123, 226)
HSLhsl(305, 75%, 70%)
HSVhsv(305, 48%, 93%)
CMYKcmyk(0%, 47.9%, 4.2%, 7.5%)
CIE-LABlab(67.65, 57.13, -33.39)
CIE-LCHlch(67.65, 66.17, 329.69°)
OKLaboklab(74.45% 0.1618 -0.091)
OKLCHoklch(74.45% 0.186 330.6)
XYZxyz(55.4020, 37.4930, 76.2555)
Luminance0.3749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7BE2 #7BEC85
analogous
#BE7BEC #EC7BE2 #EC7BA9
triadic
#EC7BE2 #E2EC7B #7BE2EC
tetradic
#EC7BE2 #ECBE7B #7BEC85 #7BA9EC
square
#EC7BE2 #ECBE7B #7BEC85 #7BA9EC
split-complementary
#EC7BE2 #A9EC7B #7BECBE
monochromatic
#CF1EBF #E446D6 #EC7BE2 #F4B0EE #FBE4F9

Accessibility & contrast

On white

2.47
#EC7BE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#EC7BE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7BE2
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7BE2#FFFFFF#000000##000000
##EC7BE21.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#769BE5
Deuteranopia (green-blind)
#96AADF
Tritanopia (blue-blind)
#F484A4
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ec7be2;
/* rgb */ color: rgb(236, 123, 226);
/* oklch */ color: oklch(74.5% 0.186 330.6);
Tailwind
colors: {
  custom: {
    50: '#f4a5eb',
    500: '#ec7be2',
    950: '#000000',
  },
}
SCSS
$custom: #ec7be2;
$custom-light: #f4a5eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7be2",
  "rgb": {
    "r": 236,
    "g": 123,
    "b": 226
  },
  "hsl": {
    "h": 305.31,
    "s": 74.834,
    "l": 70.392
  },
  "oklch": {
    "l": 0.74452,
    "c": 0.18561,
    "h": 330.6
  },
  "luminance": 0.3749
}

Semantic roles & 50–950 ramp

primary
#EC7BE2
secondary
#D2F1D5
accent
#D7200F
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#171016
muted
#857F84

Preview Lab

Preview with #EC7BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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