#4E1A79#4E1A79

#4E1A79 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.151 H 304.5°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#4E1A79
RGBrgb(78, 26, 121)
HSLhsl(273, 65%, 29%)
HSVhsv(273, 79%, 47%)
CMYKcmyk(35.5%, 78.5%, 0%, 52.5%)
CIE-LABlab(22.79, 42.01, -43.78)
CIE-LCHlch(22.79, 60.67, 313.82°)
OKLaboklab(35.33% 0.0856 -0.1247)
OKLCHoklch(35.33% 0.151 304.5)
XYZxyz(6.9617, 3.7390, 18.4404)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A79 #45791A
analogous
#1F1A79 #4E1A79 #791A75
triadic
#4E1A79 #794E1A #1A794E
tetradic
#4E1A79 #791F1A #45791A #1A7579
square
#4E1A79 #791F1A #45791A #1A7579
split-complementary
#4E1A79 #75791A #1A791F
monochromatic
#100519 #2E0F47 #4E1A79 #6E25AB #8E39D4

Accessibility & contrast

On white

12.02
#4E1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A79
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A79#FFFFFF#000000##FFFFFF
##4E1A791.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1a79;
/* rgb */ color: rgb(78, 26, 121);
/* oklch */ color: oklch(35.3% 0.151 304.5);
Tailwind
colors: {
  custom: {
    50: '#845da0',
    500: '#4e1a79',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a79;
$custom-light: #845da0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a79",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 272.842,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35333,
    "c": 0.15121,
    "h": 304.5
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#4E1A79
secondary
#72AD41
accent
#E8408C
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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