#4E1A84#4E1A84

#4E1A84 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.163 H 300.4°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4E1A84
RGBrgb(78, 26, 132)
HSLhsl(269, 67%, 31%)
HSVhsv(269, 80%, 52%)
CMYKcmyk(40.9%, 80.3%, 0%, 48.2%)
CIE-LABlab(23.75, 44.77, -49.17)
CIE-LCHlch(23.75, 66.50, 312.32°)
OKLaboklab(36.31% 0.0826 -0.1405)
OKLCHoklch(36.31% 0.163 300.4)
XYZxyz(7.6751, 4.0244, 22.1977)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A84 #50841A
analogous
#1A1B84 #4E1A84 #831A84
triadic
#4E1A84 #844E1A #1A844E
tetradic
#4E1A84 #841A1B #50841A #1A8483
square
#4E1A84 #841A1B #50841A #1A8483
split-complementary
#4E1A84 #84831A #1B841A
monochromatic
#12061E #301051 #4E1A84 #6C24B7 #8B3FD9

Accessibility & contrast

On white

11.64
#4E1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A84
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A84#FFFFFF#000000##FFFFFF
##4E1A841.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#41374F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1a84;
/* rgb */ color: rgb(78, 26, 132);
/* oklch */ color: oklch(36.3% 0.163 300.4);
Tailwind
colors: {
  custom: {
    50: '#855da9',
    500: '#4e1a84',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a84;
$custom-light: #855da9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a84",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 269.434,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36306,
    "c": 0.16302,
    "h": 300.4
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#4E1A84
secondary
#7EB842
accent
#EA3E96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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