#4E1C5A#4E1C5A

#4E1C5A is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.2% C 0.115 H 319.3°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#4E1C5A
RGBrgb(78, 28, 90)
HSLhsl(288, 53%, 23%)
HSVhsv(288, 69%, 35%)
CMYKcmyk(13.3%, 68.9%, 0%, 64.7%)
CIE-LABlab(20.78, 33.69, -26.82)
CIE-LCHlch(20.78, 43.06, 321.48°)
OKLaboklab(33.16% 0.0873 -0.0749)
OKLCHoklch(33.16% 0.115 319.3)
XYZxyz(5.4024, 3.1886, 10.0018)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1C5A #285A1C
analogous
#2F1C5A #4E1C5A #5A1C47
triadic
#4E1C5A #5A4E1C #1C5A4E
tetradic
#4E1C5A #5A2F1C #285A1C #1C475A
square
#4E1C5A #5A2F1C #285A1C #1C475A
split-complementary
#4E1C5A #475A1C #1C5A2F
monochromatic
#140717 #260D2B #4E1C5A #762B89 #9F39B7

Accessibility & contrast

On white

12.82
#4E1C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E1C5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1C5A
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1C5A#FFFFFF#000000##FFFFFF
##4E1C5A1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092F5C
Deuteranopia (green-blind)
#203458
Tritanopia (blue-blind)
#4E2738
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1c5a;
/* rgb */ color: rgb(78, 28, 90);
/* oklch */ color: oklch(33.2% 0.115 319.3);
Tailwind
colors: {
  custom: {
    50: '#825c89',
    500: '#4e1c5a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1c5a;
$custom-light: #825c89;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1c5a",
  "rgb": {
    "r": 78,
    "g": 28,
    "b": 90
  },
  "hsl": {
    "h": 288.387,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33163,
    "c": 0.11505,
    "h": 319.3
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#4E1C5A
secondary
#518F42
accent
#DC4C68
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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