#4E1A72#4E1A72

#4E1A72 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.144 H 307.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4E1A72
RGBrgb(78, 26, 114)
HSLhsl(275, 63%, 27%)
HSVhsv(275, 77%, 45%)
CMYKcmyk(31.6%, 77.2%, 0%, 55.3%)
CIE-LABlab(22.21, 40.28, -40.23)
CIE-LCHlch(22.21, 56.93, 315.03°)
OKLaboklab(34.74% 0.0871 -0.1143)
OKLCHoklch(34.74% 0.144 307.3)
XYZxyz(6.5479, 3.5735, 16.2611)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A72 #3E721A
analogous
#221A72 #4E1A72 #721A6A
triadic
#4E1A72 #724E1A #1A724E
tetradic
#4E1A72 #72221A #3E721A #1A6A72
square
#4E1A72 #72221A #3E721A #1A6A72
split-complementary
#4E1A72 #6A721A #1A7222
monochromatic
#110619 #2C0F40 #4E1A72 #7025A4 #9135D1

Accessibility & contrast

On white

12.25
#4E1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E1A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A72
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A72#FFFFFF#000000##FFFFFF
##4E1A721.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#482F44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1a72;
/* rgb */ color: rgb(78, 26, 114);
/* oklch */ color: oklch(34.7% 0.144 307.3);
Tailwind
colors: {
  custom: {
    50: '#845c9b',
    500: '#4e1a72',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a72;
$custom-light: #845c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a72",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 275.455,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34741,
    "c": 0.14368,
    "h": 307.3
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#4E1A72
secondary
#6BA741
accent
#E64285
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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