#4E174A#4E174A

#4E174A is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.5% C 0.107 H 330.8°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#4E174A
RGBrgb(78, 23, 74)
HSLhsl(304, 54%, 20%)
HSVhsv(304, 71%, 31%)
CMYKcmyk(0%, 70.5%, 5.1%, 69.4%)
CIE-LABlab(18.92, 32.82, -18.98)
CIE-LCHlch(18.92, 37.91, 329.95°)
OKLaboklab(31.49% 0.0933 -0.0522)
OKLCHoklch(31.49% 0.107 330.8)
XYZxyz(4.6843, 2.7272, 6.7569)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E174A #174E1B
analogous
#37174E #4E174A #4E172E
triadic
#4E174A #4A4E17 #174A4E
tetradic
#4E174A #4E3717 #174E1B #172E4E
square
#4E174A #4E3717 #174E1B #172E4E
split-complementary
#4E174A #2E4E17 #174E37
monochromatic
#180716 #1F091D #4E174A #7D2577 #AD33A4

Accessibility & contrast

On white

13.59
#4E174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E174A
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E174A#FFFFFF#000000##FFFFFF
##4E174A1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13294C
Deuteranopia (green-blind)
#263149
Tritanopia (blue-blind)
#511D2E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e174a;
/* rgb */ color: rgb(78, 23, 74);
/* oklch */ color: oklch(31.5% 0.107 330.8);
Tailwind
colors: {
  custom: {
    50: '#82597c',
    500: '#4e174a',
    950: '#000000',
  },
}
SCSS
$custom: #4e174a;
$custom-light: #82597c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e174a",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 304.364,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31491,
    "c": 0.10688,
    "h": 330.8
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#4E174A
secondary
#3C8541
accent
#DE554A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #4E174A

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

Preview Lab → · Contrast checker → · Palette generator →

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