#4E1B57#4E1B57

#4E1B57 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.113 H 321.4°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#4E1B57
RGBrgb(78, 27, 87)
HSLhsl(291, 53%, 22%)
HSVhsv(291, 69%, 34%)
CMYKcmyk(10.3%, 69%, 0%, 65.9%)
CIE-LABlab(20.41, 33.53, -25.42)
CIE-LCHlch(20.41, 42.08, 322.84°)
OKLaboklab(32.83% 0.0886 -0.0708)
OKLCHoklch(32.83% 0.113 321.4)
XYZxyz(5.2539, 3.0920, 9.3350)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B57 #24571B
analogous
#301B57 #4E1B57 #571B42
triadic
#4E1B57 #574E1B #1B574E
tetradic
#4E1B57 #57301B #24571B #1B4257
square
#4E1B57 #57301B #24571B #1B4257
split-complementary
#4E1B57 #42571B #1B5730
monochromatic
#150717 #240D28 #4E1B57 #782986 #A238B4

Accessibility & contrast

On white

12.98
#4E1B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4E1B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B57
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B57#FFFFFF#000000##FFFFFF
##4E1B571.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2E59
Deuteranopia (green-blind)
#223355
Tritanopia (blue-blind)
#4F2536
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1b57;
/* rgb */ color: rgb(78, 27, 87);
/* oklch */ color: oklch(32.8% 0.113 321.4);
Tailwind
colors: {
  custom: {
    50: '#825c87',
    500: '#4e1b57',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b57;
$custom-light: #825c87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b57",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 291,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32828,
    "c": 0.11345,
    "h": 321.4
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#4E1B57
secondary
#4C8D41
accent
#DC4C61
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1B57

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

Preview Lab → · Contrast checker → · Palette generator →

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