#4E1A77#4E1A77

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

Color values

HEX#4E1A77
RGBrgb(78, 26, 119)
HSLhsl(274, 64%, 28%)
HSVhsv(274, 78%, 47%)
CMYKcmyk(34.5%, 78.2%, 0%, 53.3%)
CIE-LABlab(22.62, 41.51, -42.77)
CIE-LCHlch(22.62, 59.60, 314.14°)
OKLaboklab(35.16% 0.086 -0.1217)
OKLCHoklch(35.16% 0.149 305.2)
XYZxyz(6.8403, 3.6904, 17.8012)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A77 #43771A
analogous
#1F1A77 #4E1A77 #771A71
triadic
#4E1A77 #774E1A #1A774E
tetradic
#4E1A77 #771F1A #43771A #1A7177
square
#4E1A77 #771F1A #43771A #1A7177
split-complementary
#4E1A77 #71771A #1A771F
monochromatic
#100519 #2D0F45 #4E1A77 #6F25A9 #8F38D3

Accessibility & contrast

On white

12.08
#4E1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1A77
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A77#FFFFFF#000000##FFFFFF
##4E1A771.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#463147
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1a77;
/* rgb */ color: rgb(78, 26, 119);
/* oklch */ color: oklch(35.2% 0.149 305.2);
Tailwind
colors: {
  custom: {
    50: '#845c9f',
    500: '#4e1a77',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a77;
$custom-light: #845c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a77",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 273.548,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35161,
    "c": 0.14906,
    "h": 305.2
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#4E1A77
secondary
#70AC41
accent
#E7418A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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