#EC7CDC#EC7CDC

#EC7CDC is a light, vivid purple. Relative luminance 0.374; OKLCH L 74.3% C 0.179 H 332.8°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#EC7CDC
RGBrgb(236, 124, 220)
HSLhsl(309, 75%, 71%)
HSVhsv(309, 47%, 93%)
CMYKcmyk(0%, 47.5%, 6.8%, 7.5%)
CIE-LABlab(67.59, 55.64, -30.15)
CIE-LCHlch(67.59, 63.28, 331.55°)
OKLaboklab(74.33% 0.1592 -0.0819)
OKLCHoklch(74.33% 0.179 332.8)
XYZxyz(54.7178, 37.4188, 72.0368)
Luminance0.3741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7CDC #7CEC8C
analogous
#C47CEC #EC7CDC #EC7CA4
triadic
#EC7CDC #DCEC7C #7CDCEC
tetradic
#EC7CDC #ECC47C #7CEC8C #7CA4EC
square
#EC7CDC #ECC47C #7CEC8C #7CA4EC
split-complementary
#EC7CDC #A4EC7C #7CECC4
monochromatic
#D01EB6 #E447CE #EC7CDC #F4B1EA #FBE4F8

Accessibility & contrast

On white

2.48
#EC7CDC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#EC7CDC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7CDC
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7CDC#FFFFFF#000000##000000
##EC7CDC1.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A9BDF
Deuteranopia (green-blind)
#99AAD9
Tritanopia (blue-blind)
#F583A2
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ec7cdc;
/* rgb */ color: rgb(236, 124, 220);
/* oklch */ color: oklch(74.3% 0.179 332.8);
Tailwind
colors: {
  custom: {
    50: '#f4a5e7',
    500: '#ec7cdc',
    950: '#000000',
  },
}
SCSS
$custom: #ec7cdc;
$custom-light: #f4a5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7cdc",
  "rgb": {
    "r": 236,
    "g": 124,
    "b": 220
  },
  "hsl": {
    "h": 308.571,
    "s": 74.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.74332,
    "c": 0.17899,
    "h": 332.8
  },
  "luminance": 0.37415
}

Semantic roles & 50–950 ramp

primary
#EC7CDC
secondary
#D3F1D7
accent
#D72B0F
background
#FFFAFE
surface
#FFF4FC
border
#D7CED5
text
#171016
muted
#857F84

Preview Lab

Preview with #EC7CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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