#4E1B4D#4E1B4D

#4E1B4D is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.2% C 0.103 H 328.4°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#4E1B4D
RGBrgb(78, 27, 77)
HSLhsl(301, 49%, 21%)
HSVhsv(301, 65%, 31%)
CMYKcmyk(0%, 65.4%, 1.3%, 69.4%)
CIE-LABlab(19.80, 31.44, -19.64)
CIE-LCHlch(19.80, 37.07, 328.01°)
OKLaboklab(32.19% 0.088 -0.0541)
OKLCHoklch(32.19% 0.103 328.4)
XYZxyz(4.8733, 2.9397, 7.3305)
Luminance0.0294 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B4D #1B4E1C
analogous
#351B4E #4E1B4D #4E1B33
triadic
#4E1B4D #4D4E1B #1B4D4E
tetradic
#4E1B4D #4E351B #1B4E1C #1B334E
square
#4E1B4D #4E351B #1B4E1C #1B334E
split-complementary
#4E1B4D #334E1B #1B4E35
monochromatic
#170816 #210B20 #4E1B4D #7B2B7A #A93AA7

Accessibility & contrast

On white

13.23
#4E1B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4E1B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B4D
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B4D#FFFFFF#000000##FFFFFF
##4E1B4D1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162C4F
Deuteranopia (green-blind)
#27324C
Tritanopia (blue-blind)
#512131
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1b4d;
/* rgb */ color: rgb(78, 27, 77);
/* oklch */ color: oklch(32.2% 0.103 328.4);
Tailwind
colors: {
  custom: {
    50: '#815b7f',
    500: '#4e1b4d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b4d;
$custom-light: #815b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b4d",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 77
  },
  "hsl": {
    "h": 301.176,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3219,
    "c": 0.10328,
    "h": 328.4
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#4E1B4D
secondary
#418442
accent
#D85250
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E1B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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