#4E174B#4E174B

#4E174B is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.6% C 0.108 H 330.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#4E174B
RGBrgb(78, 23, 75)
HSLhsl(303, 54%, 20%)
HSVhsv(303, 71%, 31%)
CMYKcmyk(0%, 70.5%, 3.8%, 69.4%)
CIE-LABlab(18.97, 33.01, -19.57)
CIE-LCHlch(18.97, 38.38, 329.33°)
OKLaboklab(31.55% 0.0934 -0.0539)
OKLCHoklch(31.55% 0.108 330)
XYZxyz(4.7183, 2.7408, 6.9358)
Luminance0.0274 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E174B #174E1A
analogous
#36174E #4E174B #4E172F
triadic
#4E174B #4B4E17 #174B4E
tetradic
#4E174B #4E3617 #174E1A #172F4E
square
#4E174B #4E3617 #174E1A #172F4E
split-complementary
#4E174B #2F4E17 #174E36
monochromatic
#180717 #1F091E #4E174B #7D2578 #AD33A6

Accessibility & contrast

On white

13.57
#4E174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E174B
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E174B#FFFFFF#000000##FFFFFF
##4E174B1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12294D
Deuteranopia (green-blind)
#26314A
Tritanopia (blue-blind)
#511D2E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e174b;
/* rgb */ color: rgb(78, 23, 75);
/* oklch */ color: oklch(31.6% 0.108 330.0);
Tailwind
colors: {
  custom: {
    50: '#82597d',
    500: '#4e174b',
    950: '#000000',
  },
}
SCSS
$custom: #4e174b;
$custom-light: #82597d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e174b",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 303.273,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31552,
    "c": 0.10781,
    "h": 330
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#4E174B
secondary
#3C8540
accent
#DE524A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #4E174B

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

Preview Lab → · Contrast checker → · Palette generator →

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