#4E1B5B#4E1B5B

#4E1B5B is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.1% C 0.118 H 318.9°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#4E1B5B
RGBrgb(78, 27, 91)
HSLhsl(288, 54%, 23%)
HSVhsv(288, 70%, 36%)
CMYKcmyk(14.3%, 70.3%, 0%, 64.3%)
CIE-LABlab(20.67, 34.41, -27.67)
CIE-LCHlch(20.67, 44.16, 321.20°)
OKLaboklab(33.1% 0.0886 -0.0774)
OKLCHoklch(33.1% 0.118 318.9)
XYZxyz(5.4219, 3.1591, 10.2197)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B5B #285B1B
analogous
#2E1B5B #4E1B5B #5B1B48
triadic
#4E1B5B #5B4E1B #1B5B4E
tetradic
#4E1B5B #5B2E1B #285B1B #1B485B
square
#4E1B5B #5B2E1B #285B1B #1B485B
split-complementary
#4E1B5B #485B1B #1B5B2E
monochromatic
#140718 #260D2C #4E1B5B #76298A #9F37B9

Accessibility & contrast

On white

12.87
#4E1B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4E1B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B5B
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B5B#FFFFFF#000000##FFFFFF
##4E1B5B1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062E5D
Deuteranopia (green-blind)
#1F3359
Tritanopia (blue-blind)
#4E2638
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1b5b;
/* rgb */ color: rgb(78, 27, 91);
/* oklch */ color: oklch(33.1% 0.118 318.9);
Tailwind
colors: {
  custom: {
    50: '#825c8a',
    500: '#4e1b5b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b5b;
$custom-light: #825c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b5b",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 287.813,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33102,
    "c": 0.11765,
    "h": 318.9
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#4E1B5B
secondary
#519141
accent
#DE4A68
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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