#4E1B4B#4E1B4B

#4E1B4B is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.1% C 0.101 H 330.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#4E1B4B
RGBrgb(78, 27, 75)
HSLhsl(304, 49%, 21%)
HSVhsv(304, 65%, 31%)
CMYKcmyk(0%, 65.4%, 3.8%, 69.4%)
CIE-LABlab(19.69, 31.04, -18.45)
CIE-LCHlch(19.69, 36.11, 329.27°)
OKLaboklab(32.07% 0.0878 -0.0507)
OKLCHoklch(32.07% 0.101 330)
XYZxyz(4.8038, 2.9119, 6.9643)
Luminance0.0291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B4B #1B4E1E
analogous
#371B4E #4E1B4B #4E1B31
triadic
#4E1B4B #4B4E1B #1B4B4E
tetradic
#4E1B4B #4E371B #1B4E1E #1B314E
square
#4E1B4B #4E371B #1B4E1E #1B314E
split-complementary
#4E1B4B #314E1B #1B4E37
monochromatic
#170816 #210B1F #4E1B4B #7B2B77 #A93AA2

Accessibility & contrast

On white

13.27
#4E1B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B4B
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B4B#FFFFFF#000000##FFFFFF
##4E1B4B1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172B4C
Deuteranopia (green-blind)
#28324A
Tritanopia (blue-blind)
#512030
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1b4b;
/* rgb */ color: rgb(78, 27, 75);
/* oklch */ color: oklch(32.1% 0.101 330.0);
Tailwind
colors: {
  custom: {
    50: '#815b7d',
    500: '#4e1b4b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b4b;
$custom-light: #815b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b4b",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 75
  },
  "hsl": {
    "h": 303.529,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32071,
    "c": 0.10133,
    "h": 330
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#4E1B4B
secondary
#418445
accent
#D85850
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #4E1B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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