#4E1A81#4E1A81

#4E1A81 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.160 H 301.5°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#4E1A81
RGBrgb(78, 26, 129)
HSLhsl(270, 66%, 30%)
HSVhsv(270, 80%, 51%)
CMYKcmyk(39.5%, 79.8%, 0%, 49.4%)
CIE-LABlab(23.48, 44.01, -47.72)
CIE-LCHlch(23.48, 64.92, 312.69°)
OKLaboklab(36.04% 0.0835 -0.1363)
OKLCHoklch(36.04% 0.16 301.5)
XYZxyz(7.4728, 3.9434, 21.1321)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A81 #4D811A
analogous
#1A1A81 #4E1A81 #811A81
triadic
#4E1A81 #814E1A #1A814E
tetradic
#4E1A81 #811A1A #4D811A #1A8181
square
#4E1A81 #811A1A #4D811A #1A8181
split-complementary
#4E1A81 #81811A #1A811A
monochromatic
#10051B #2F104E #4E1A81 #6D24B4 #8B3DD8

Accessibility & contrast

On white

11.74
#4E1A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E1A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A81
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A81#FFFFFF#000000##FFFFFF
##4E1A811.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#43354D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1a81;
/* rgb */ color: rgb(78, 26, 129);
/* oklch */ color: oklch(36.0% 0.160 301.5);
Tailwind
colors: {
  custom: {
    50: '#855da6',
    500: '#4e1a81',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a81;
$custom-light: #855da6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a81",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 270.291,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36036,
    "c": 0.1598,
    "h": 301.5
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#4E1A81
secondary
#7BB542
accent
#E93E93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1A81

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

Preview Lab → · Contrast checker → · Palette generator →

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