#EC8DEF#EC8DEF

#EC8DEF is a light, vivid purple. Relative luminance 0.431; OKLCH L 77.6% C 0.168 H 325.9°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#EC8DEF
RGBrgb(236, 141, 239)
HSLhsl(298, 75%, 75%)
HSVhsv(298, 41%, 94%)
CMYKcmyk(1.3%, 41%, 0%, 6.3%)
CIE-LABlab(71.63, 50.46, -34.37)
CIE-LCHlch(71.63, 61.05, 325.74°)
OKLaboklab(77.6% 0.139 -0.094)
OKLCHoklch(77.6% 0.168 325.9)
XYZxyz(59.6956, 43.1173, 86.8227)
Luminance0.4311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC8DEF #90EF8D
analogous
#BB8DEF #EC8DEF #EF8DC1
triadic
#EC8DEF #EFEC8D #8DEFEC
tetradic
#EC8DEF #EFBB8D #90EF8D #8DC1EF
square
#EC8DEF #EFBB8D #90EF8D #8DC1EF
split-complementary
#EC8DEF #C1EF8D #8DEFBB
monochromatic
#DA22E0 #E357E7 #EC8DEF #F5C3F7 #FBE4FB

Accessibility & contrast

On white

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

On black

9.62
#EC8DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC8DEF
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC8DEF#FFFFFF#000000##000000
##EC8DEF1.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A8F2
Deuteranopia (green-blind)
#9EB4EC
Tritanopia (blue-blind)
#F197B3
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #ec8def;
/* rgb */ color: rgb(236, 141, 239);
/* oklch */ color: oklch(77.6% 0.168 325.9);
Tailwind
colors: {
  custom: {
    50: '#f4b0f4',
    500: '#ec8def',
    950: '#000000',
  },
}
SCSS
$custom: #ec8def;
$custom-light: #f4b0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ec8def",
  "rgb": {
    "r": 236,
    "g": 141,
    "b": 239
  },
  "hsl": {
    "h": 298.163,
    "s": 75.385,
    "l": 74.51
  },
  "oklch": {
    "l": 0.77598,
    "c": 0.1678,
    "h": 325.9
  },
  "luminance": 0.43115
}

Semantic roles & 50–950 ramp

primary
#EC8DEF
secondary
#D9F3D8
accent
#D80E14
background
#FFFBFE
surface
#FEF6FD
border
#D6D0D5
text
#171117
muted
#858085

Preview Lab

Preview with #EC8DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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