#4E1B4A#4E1B4A

#4E1B4A is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.0% C 0.100 H 330.8°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#4E1B4A
RGBrgb(78, 27, 74)
HSLhsl(305, 49%, 21%)
HSVhsv(305, 65%, 31%)
CMYKcmyk(0%, 65.4%, 5.1%, 69.4%)
CIE-LABlab(19.63, 30.84, -17.86)
CIE-LCHlch(19.63, 35.64, 329.93°)
OKLaboklab(32.01% 0.0876 -0.049)
OKLCHoklch(32.01% 0.1 330.8)
XYZxyz(4.7698, 2.8983, 6.7854)
Luminance0.0290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B4A #1B4E1F
analogous
#381B4E #4E1B4A #4E1B30
triadic
#4E1B4A #4A4E1B #1B4A4E
tetradic
#4E1B4A #4E381B #1B4E1F #1B304E
square
#4E1B4A #4E381B #1B4E1F #1B304E
split-complementary
#4E1B4A #304E1B #1B4E38
monochromatic
#170816 #210B1F #4E1B4A #7B2B75 #A93AA0

Accessibility & contrast

On white

13.29
#4E1B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4E1B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B4A
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B4A#FFFFFF#000000##FFFFFF
##4E1B4A1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182B4B
Deuteranopia (green-blind)
#293249
Tritanopia (blue-blind)
#51202F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4e1b4a;
/* rgb */ color: rgb(78, 27, 74);
/* oklch */ color: oklch(32.0% 0.100 330.8);
Tailwind
colors: {
  custom: {
    50: '#815b7c',
    500: '#4e1b4a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b4a;
$custom-light: #815b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b4a",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 74
  },
  "hsl": {
    "h": 304.706,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32012,
    "c": 0.10037,
    "h": 330.8
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

primary
#4E1B4A
secondary
#418446
accent
#D85A50
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #4E1B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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