#4E1D5A#4E1D5A

#4E1D5A is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.3% C 0.113 H 319.2°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#4E1D5A
RGBrgb(78, 29, 90)
HSLhsl(288, 51%, 23%)
HSVhsv(288, 68%, 35%)
CMYKcmyk(13.3%, 67.8%, 0%, 64.7%)
CIE-LABlab(20.97, 33.18, -26.53)
CIE-LCHlch(20.97, 42.48, 321.36°)
OKLaboklab(33.3% 0.0859 -0.0741)
OKLCHoklch(33.3% 0.113 319.2)
XYZxyz(5.4265, 3.2369, 10.0098)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D5A #295A1D
analogous
#2F1D5A #4E1D5A #5A1D47
triadic
#4E1D5A #5A4E1D #1D5A4E
tetradic
#4E1D5A #5A2F1D #295A1D #1D475A
square
#4E1D5A #5A2F1D #295A1D #1D475A
split-complementary
#4E1D5A #475A1D #1D5A2F
monochromatic
#140717 #260E2C #4E1D5A #762C88 #9E3BB7

Accessibility & contrast

On white

12.75
#4E1D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4E1D5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D5A
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D5A#FFFFFF#000000##FFFFFF
##4E1D5A1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2F5C
Deuteranopia (green-blind)
#213458
Tritanopia (blue-blind)
#4E2738
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1d5a;
/* rgb */ color: rgb(78, 29, 90);
/* oklch */ color: oklch(33.3% 0.113 319.2);
Tailwind
colors: {
  custom: {
    50: '#825d89',
    500: '#4e1d5a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d5a;
$custom-light: #825d89;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d5a",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 90
  },
  "hsl": {
    "h": 288.197,
    "s": 51.261,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33296,
    "c": 0.11347,
    "h": 319.2
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#4E1D5A
secondary
#528F44
accent
#DB4D69
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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