#4E1A57#4E1A57

#4E1A57 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.7% C 0.115 H 321.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#4E1A57
RGBrgb(78, 26, 87)
HSLhsl(291, 54%, 22%)
HSVhsv(291, 70%, 34%)
CMYKcmyk(10.3%, 70.1%, 0%, 65.9%)
CIE-LABlab(20.23, 34.03, -25.70)
CIE-LCHlch(20.23, 42.64, 322.94°)
OKLaboklab(32.7% 0.09 -0.0717)
OKLCHoklch(32.7% 0.115 321.5)
XYZxyz(5.2314, 3.0469, 9.3275)
Luminance0.0305 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A57 #23571A
analogous
#301A57 #4E1A57 #571A41
triadic
#4E1A57 #574E1A #1A574E
tetradic
#4E1A57 #57301A #23571A #1A4157
square
#4E1A57 #57301A #23571A #1A4157
split-complementary
#4E1A57 #41571A #1A5730
monochromatic
#150718 #240C28 #4E1A57 #782886 #A236B5

Accessibility & contrast

On white

13.05
#4E1A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4E1A57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A57
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A57#FFFFFF#000000##FFFFFF
##4E1A571.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2D59
Deuteranopia (green-blind)
#213355
Tritanopia (blue-blind)
#4F2436
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1a57;
/* rgb */ color: rgb(78, 26, 87);
/* oklch */ color: oklch(32.7% 0.115 321.5);
Tailwind
colors: {
  custom: {
    50: '#825b87',
    500: '#4e1a57',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a57;
$custom-light: #825b87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a57",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 291.148,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.327,
    "c": 0.11501,
    "h": 321.5
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#4E1A57
secondary
#4B8D40
accent
#DD4A60
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1A57

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

Preview Lab → · Contrast checker → · Palette generator →

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