#4E1A76#4E1A76

#4E1A76 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.148 H 305.6°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4E1A76
RGBrgb(78, 26, 118)
HSLhsl(274, 64%, 28%)
HSVhsv(274, 78%, 46%)
CMYKcmyk(33.9%, 78%, 0%, 53.7%)
CIE-LABlab(22.54, 41.26, -42.27)
CIE-LCHlch(22.54, 59.07, 314.31°)
OKLaboklab(35.08% 0.0862 -0.1202)
OKLCHoklch(35.08% 0.148 305.6)
XYZxyz(6.7806, 3.6665, 17.4865)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A76 #42761A
analogous
#201A76 #4E1A76 #761A70
triadic
#4E1A76 #764E1A #1A764E
tetradic
#4E1A76 #76201A #42761A #1A7076
square
#4E1A76 #76201A #42761A #1A7076
split-complementary
#4E1A76 #70761A #1A7620
monochromatic
#110619 #2D0F44 #4E1A76 #6F25A8 #8F37D3

Accessibility & contrast

On white

12.12
#4E1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E1A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A76
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A76#FFFFFF#000000##FFFFFF
##4E1A761.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#473147
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1a76;
/* rgb */ color: rgb(78, 26, 118);
/* oklch */ color: oklch(35.1% 0.148 305.6);
Tailwind
colors: {
  custom: {
    50: '#845c9e',
    500: '#4e1a76',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a76;
$custom-light: #845c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a76",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 273.913,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35076,
    "c": 0.14798,
    "h": 305.6
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#4E1A76
secondary
#6FAB41
accent
#E74189
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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