#EC8BF2#EC8BF2

#EC8BF2 is a light, vivid purple. Relative luminance 0.427; OKLCH L 77.4% C 0.174 H 325.0°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#EC8BF2
RGBrgb(236, 139, 242)
HSLhsl(297, 80%, 75%)
HSVhsv(297, 43%, 95%)
CMYKcmyk(2.5%, 42.6%, 0%, 5.1%)
CIE-LABlab(71.36, 52.01, -36.44)
CIE-LCHlch(71.36, 63.51, 324.99°)
OKLaboklab(77.43% 0.1424 -0.0998)
OKLCHoklch(77.43% 0.174 325)
XYZxyz(59.8503, 42.7116, 89.0788)
Luminance0.4271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC8BF2 #91F28B
analogous
#B98BF2 #EC8BF2 #F28BC5
triadic
#EC8BF2 #F2EC8B #8BF2EC
tetradic
#EC8BF2 #F2B98B #91F28B #8BC5F2
square
#EC8BF2 #F2B98B #91F28B #8BC5F2
split-complementary
#EC8BF2 #C5F28B #8BF2B9
monochromatic
#DA1DE6 #E354EC #EC8BF2 #F5C2F8 #FAE3FC

Accessibility & contrast

On white

2.20
#EC8BF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#EC8BF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC8BF2
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC8BF2#FFFFFF#000000##000000
##EC8BF21.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A7F6
Deuteranopia (green-blind)
#9BB3EF
Tritanopia (blue-blind)
#F096B3
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #ec8bf2;
/* rgb */ color: rgb(236, 139, 242);
/* oklch */ color: oklch(77.4% 0.174 325.0);
Tailwind
colors: {
  custom: {
    50: '#f4aff6',
    500: '#ec8bf2',
    950: '#000000',
  },
}
SCSS
$custom: #ec8bf2;
$custom-light: #f4aff6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec8bf2",
  "rgb": {
    "r": 236,
    "g": 139,
    "b": 242
  },
  "hsl": {
    "h": 296.505,
    "s": 79.845,
    "l": 74.706
  },
  "oklch": {
    "l": 0.77432,
    "c": 0.17395,
    "h": 325
  },
  "luminance": 0.42709
}

Semantic roles & 50–950 ramp

primary
#EC8BF2
secondary
#D9F4D7
accent
#DC0916
background
#FFFAFF
surface
#FEF5FE
border
#D6CFD6
text
#171117
muted
#858085

Preview Lab

Preview with #EC8BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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