#4E174D#4E174D

#4E174D is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.7% C 0.110 H 328.5°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#4E174D
RGBrgb(78, 23, 77)
HSLhsl(301, 54%, 20%)
HSVhsv(301, 71%, 31%)
CMYKcmyk(0%, 70.5%, 1.3%, 69.4%)
CIE-LABlab(19.09, 33.40, -20.75)
CIE-LCHlch(19.09, 39.32, 328.15°)
OKLaboklab(31.68% 0.0935 -0.0573)
OKLCHoklch(31.68% 0.11 328.5)
XYZxyz(4.7878, 2.7686, 7.3020)
Luminance0.0277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E174D #174E18
analogous
#34174E #4E174D #4E1732
triadic
#4E174D #4D4E17 #174D4E
tetradic
#4E174D #4E3417 #174E18 #17324E
square
#4E174D #4E3417 #174E18 #17324E
split-complementary
#4E174D #324E17 #174E34
monochromatic
#180717 #1F091E #4E174D #7D257C #AD33AA

Accessibility & contrast

On white

13.52
#4E174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E174D
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E174D#FFFFFF#000000##FFFFFF
##4E174D1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A4F
Deuteranopia (green-blind)
#25314C
Tritanopia (blue-blind)
#511E2F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e174d;
/* rgb */ color: rgb(78, 23, 77);
/* oklch */ color: oklch(31.7% 0.110 328.5);
Tailwind
colors: {
  custom: {
    50: '#82597f',
    500: '#4e174d',
    950: '#000000',
  },
}
SCSS
$custom: #4e174d;
$custom-light: #82597f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e174d",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 301.091,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31676,
    "c": 0.10969,
    "h": 328.5
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#4E174D
secondary
#3C853D
accent
#DE4D4A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E174D

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

Preview Lab → · Contrast checker → · Palette generator →

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