#4E1A5B#4E1A5B

#4E1A5B is a dark, moderate purple. Relative luminance 0.031; OKLCH L 33.0% C 0.119 H 319.0°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#4E1A5B
RGBrgb(78, 26, 91)
HSLhsl(288, 56%, 23%)
HSVhsv(288, 71%, 36%)
CMYKcmyk(14.3%, 71.4%, 0%, 64.3%)
CIE-LABlab(20.50, 34.90, -27.95)
CIE-LCHlch(20.50, 44.71, 321.32°)
OKLaboklab(32.98% 0.0899 -0.0782)
OKLCHoklch(32.98% 0.119 319)
XYZxyz(5.3994, 3.1141, 10.2122)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A5B #275B1A
analogous
#2D1A5B #4E1A5B #5B1A47
triadic
#4E1A5B #5B4E1A #1A5B4E
tetradic
#4E1A5B #5B2D1A #275B1A #1A475B
square
#4E1A5B #5B2D1A #275B1A #1A475B
split-complementary
#4E1A5B #475B1A #1A5B2D
monochromatic
#140718 #250C2B #4E1A5B #77288B #A035BA

Accessibility & contrast

On white

12.94
#4E1A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1A5B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A5B#FFFFFF#000000##FFFFFF
##4E1A5B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032E5D
Deuteranopia (green-blind)
#1E3359
Tritanopia (blue-blind)
#4E2638
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1a5b;
/* rgb */ color: rgb(78, 26, 91);
/* oklch */ color: oklch(33.0% 0.119 319.0);
Tailwind
colors: {
  custom: {
    50: '#825b8a',
    500: '#4e1a5b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a5b;
$custom-light: #825b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a5b",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 288,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32976,
    "c": 0.11916,
    "h": 319
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#4E1A5B
secondary
#509140
accent
#DF4967
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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