#4E1A5F#4E1A5F

#4E1A5F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.123 H 316.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#4E1A5F
RGBrgb(78, 26, 95)
HSLhsl(285, 57%, 24%)
HSVhsv(285, 73%, 37%)
CMYKcmyk(17.9%, 72.6%, 0%, 62.7%)
CIE-LABlab(20.77, 35.80, -30.16)
CIE-LCHlch(20.77, 46.81, 319.88°)
OKLaboklab(33.26% 0.0897 -0.0847)
OKLCHoklch(33.26% 0.123 316.6)
XYZxyz(5.5765, 3.1849, 11.1453)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A5F #2B5F1A
analogous
#2B1A5F #4E1A5F #5F1A4D
triadic
#4E1A5F #5F4E1A #1A5F4E
tetradic
#4E1A5F #5F2B1A #2B5F1A #1A4D5F
square
#4E1A5F #5F2B1A #2B5F1A #1A4D5F
split-complementary
#4E1A5F #4D5F1A #1A5F2B
monochromatic
#140718 #270D2F #4E1A5F #75278F #9D34BF

Accessibility & contrast

On white

12.83
#4E1A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1A5F
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A5F#FFFFFF#000000##FFFFFF
##4E1A5F1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#1B335D
Tritanopia (blue-blind)
#4D273A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1a5f;
/* rgb */ color: rgb(78, 26, 95);
/* oklch */ color: oklch(33.3% 0.123 316.6);
Tailwind
colors: {
  custom: {
    50: '#825b8d',
    500: '#4e1a5f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a5f;
$custom-light: #825b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a5f",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 285.217,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33261,
    "c": 0.12337,
    "h": 316.6
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#4E1A5F
secondary
#559540
accent
#E0486D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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