#4E174C#4E174C

#4E174C is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.6% C 0.109 H 329.3°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#4E174C
RGBrgb(78, 23, 76)
HSLhsl(302, 54%, 20%)
HSVhsv(302, 71%, 31%)
CMYKcmyk(0%, 70.5%, 2.6%, 69.4%)
CIE-LABlab(19.03, 33.20, -20.16)
CIE-LCHlch(19.03, 38.85, 328.73°)
OKLaboklab(31.61% 0.0935 -0.0556)
OKLCHoklch(31.61% 0.109 329.3)
XYZxyz(4.7527, 2.7546, 7.1174)
Luminance0.0275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E174C #174E19
analogous
#35174E #4E174C #4E1731
triadic
#4E174C #4C4E17 #174C4E
tetradic
#4E174C #4E3517 #174E19 #17314E
square
#4E174C #4E3517 #174E19 #17314E
split-complementary
#4E174C #314E17 #174E35
monochromatic
#180717 #1F091E #4E174C #7D257A #AD33A8

Accessibility & contrast

On white

13.54
#4E174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4E174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E174C
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E174C#FFFFFF#000000##FFFFFF
##4E174C1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11294E
Deuteranopia (green-blind)
#25314B
Tritanopia (blue-blind)
#511E2F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e174c;
/* rgb */ color: rgb(78, 23, 76);
/* oklch */ color: oklch(31.6% 0.109 329.3);
Tailwind
colors: {
  custom: {
    50: '#82597e',
    500: '#4e174c',
    950: '#000000',
  },
}
SCSS
$custom: #4e174c;
$custom-light: #82597e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e174c",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 302.182,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31614,
    "c": 0.10875,
    "h": 329.3
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#4E174C
secondary
#3C853E
accent
#DE4F4A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E174C

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

Preview Lab → · Contrast checker → · Palette generator →

#4E174C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva