#4E1B58#4E1B58

#4E1B58 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.9% C 0.115 H 320.7°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#4E1B58
RGBrgb(78, 27, 88)
HSLhsl(290, 53%, 23%)
HSVhsv(290, 69%, 35%)
CMYKcmyk(11.4%, 69.3%, 0%, 65.5%)
CIE-LABlab(20.47, 33.75, -25.98)
CIE-LCHlch(20.47, 42.59, 322.41°)
OKLaboklab(32.9% 0.0886 -0.0725)
OKLCHoklch(32.9% 0.115 320.7)
XYZxyz(5.2951, 3.1084, 9.5517)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B58 #25581B
analogous
#301B58 #4E1B58 #581B43
triadic
#4E1B58 #584E1B #1B584E
tetradic
#4E1B58 #58301B #25581B #1B4358
square
#4E1B58 #58301B #25581B #1B4358
split-complementary
#4E1B58 #43581B #1B5830
monochromatic
#150717 #240D29 #4E1B58 #782987 #A138B6

Accessibility & contrast

On white

12.95
#4E1B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B58
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B58#FFFFFF#000000##FFFFFF
##4E1B581.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2E5A
Deuteranopia (green-blind)
#213356
Tritanopia (blue-blind)
#4F2537
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1b58;
/* rgb */ color: rgb(78, 27, 88);
/* oklch */ color: oklch(32.9% 0.115 320.7);
Tailwind
colors: {
  custom: {
    50: '#825c87',
    500: '#4e1b58',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b58;
$custom-light: #825c87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b58",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 290.164,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32896,
    "c": 0.1145,
    "h": 320.7
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#4E1B58
secondary
#4E8E41
accent
#DC4B63
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1B58

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

Preview Lab → · Contrast checker → · Palette generator →

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