#E172D2#E172D2

#E172D2 is a light, vivid purple. Relative luminance 0.327; OKLCH L 71.2% C 0.179 H 332.6°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#E172D2
RGBrgb(225, 114, 210)
HSLhsl(308, 65%, 66%)
HSVhsv(308, 49%, 88%)
CMYKcmyk(0%, 49.3%, 6.7%, 11.8%)
CIE-LABlab(63.92, 55.64, -30.36)
CIE-LCHlch(63.92, 63.38, 331.38°)
OKLaboklab(71.17% 0.1591 -0.0825)
OKLCHoklch(71.17% 0.179 332.6)
XYZxyz(48.7013, 32.6984, 64.7065)
Luminance0.3270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E172D2 #72E181
analogous
#B972E1 #E172D2 #E1729B
triadic
#E172D2 #D2E172 #72D2E1
tetradic
#E172D2 #E1B972 #72E181 #729BE1
square
#E172D2 #E1B972 #72E181 #729BE1
split-complementary
#E172D2 #9BE172 #72E1B9
monochromatic
#B326A0 #D640C2 #E172D2 #ECA4E2 #F6D7F2

Accessibility & contrast

On white

2.79
#E172D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#E172D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E172D2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E172D2#FFFFFF#000000##000000
##E172D21.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F91D5
Deuteranopia (green-blind)
#8FA1CF
Tritanopia (blue-blind)
#E97998
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #e172d2;
/* rgb */ color: rgb(225, 114, 210);
/* oklch */ color: oklch(71.2% 0.179 332.6);
Tailwind
colors: {
  custom: {
    50: '#ed9ee0',
    500: '#e172d2',
    950: '#000000',
  },
}
SCSS
$custom: #e172d2;
$custom-light: #ed9ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#e172d2",
  "rgb": {
    "r": 225,
    "g": 114,
    "b": 210
  },
  "hsl": {
    "h": 308.108,
    "s": 64.912,
    "l": 66.471
  },
  "oklch": {
    "l": 0.71174,
    "c": 0.17926,
    "h": 332.6
  },
  "luminance": 0.32695
}

Semantic roles & 50–950 ramp

primary
#E172D2
secondary
#C5E9CA
accent
#CD3119
background
#FEFAFD
surface
#FDF3FB
border
#D5CDD4
text
#170F15
muted
#857F83

Preview Lab

Preview with #E172D2

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

Preview Lab → · Contrast checker → · Palette generator →

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