#EC7BF2#EC7BF2

#EC7BF2 is a light, vivid purple. Relative luminance 0.384; OKLCH L 75.2% C 0.200 H 325.4°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#EC7BF2
RGBrgb(236, 123, 242)
HSLhsl(297, 82%, 72%)
HSVhsv(297, 49%, 95%)
CMYKcmyk(2.5%, 49.2%, 0%, 5.1%)
CIE-LABlab(68.32, 59.90, -41.17)
CIE-LCHlch(68.32, 72.69, 325.50°)
OKLaboklab(75.18% 0.1644 -0.1133)
OKLCHoklch(75.18% 0.2 325.4)
XYZxyz(57.7008, 38.4125, 88.3623)
Luminance0.3841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7BF2 #81F27B
analogous
#B17BF2 #EC7BF2 #F27BBD
triadic
#EC7BF2 #F2EC7B #7BF2EC
tetradic
#EC7BF2 #F2B17B #81F27B #7BBDF2
square
#EC7BF2 #F2B17B #81F27B #7BBDF2
split-complementary
#EC7BF2 #BDF27B #7BF2B1
monochromatic
#D316DD #E443ED #EC7BF2 #F4B3F7 #FBE3FC

Accessibility & contrast

On white

2.42
#EC7BF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#EC7BF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7BF2
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7BF2#FFFFFF#000000##000000
##EC7BF21.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9EF6
Deuteranopia (green-blind)
#8FACEE
Tritanopia (blue-blind)
#F189AC
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ec7bf2;
/* rgb */ color: rgb(236, 123, 242);
/* oklch */ color: oklch(75.2% 0.200 325.4);
Tailwind
colors: {
  custom: {
    50: '#f4a5f6',
    500: '#ec7bf2',
    950: '#000000',
  },
}
SCSS
$custom: #ec7bf2;
$custom-light: #f4a5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7bf2",
  "rgb": {
    "r": 236,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 296.975,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.75176,
    "c": 0.19962,
    "h": 325.4
  },
  "luminance": 0.3841
}

Semantic roles & 50–950 ramp

primary
#EC7BF2
secondary
#D7F4D5
accent
#DE0712
background
#FFFAFF
surface
#FFF4FE
border
#D7CED6
text
#171017
muted
#857F85

Preview Lab

Preview with #EC7BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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