#4E1A78#4E1A78

#4E1A78 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.150 H 304.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#4E1A78
RGBrgb(78, 26, 120)
HSLhsl(273, 64%, 29%)
HSVhsv(273, 78%, 47%)
CMYKcmyk(35%, 78.3%, 0%, 52.9%)
CIE-LABlab(22.70, 41.76, -43.28)
CIE-LCHlch(22.70, 60.14, 313.98°)
OKLaboklab(35.25% 0.0858 -0.1232)
OKLCHoklch(35.25% 0.15 304.8)
XYZxyz(6.9007, 3.7146, 18.1191)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A78 #44781A
analogous
#1F1A78 #4E1A78 #781A73
triadic
#4E1A78 #784E1A #1A784E
tetradic
#4E1A78 #781F1A #44781A #1A7378
square
#4E1A78 #781F1A #44781A #1A7378
split-complementary
#4E1A78 #73781A #1A781F
monochromatic
#100519 #2D0F46 #4E1A78 #6F25AA #8E38D4

Accessibility & contrast

On white

12.05
#4E1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E1A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A78
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A78#FFFFFF#000000##FFFFFF
##4E1A781.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003676
Tritanopia (blue-blind)
#463248
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1a78;
/* rgb */ color: rgb(78, 26, 120);
/* oklch */ color: oklch(35.2% 0.150 304.8);
Tailwind
colors: {
  custom: {
    50: '#845da0',
    500: '#4e1a78',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a78;
$custom-light: #845da0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a78",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 273.191,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35247,
    "c": 0.15013,
    "h": 304.8
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#4E1A78
secondary
#71AC41
accent
#E7408B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4E1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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