#4E1A80#4E1A80

#4E1A80 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.159 H 301.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4E1A80
RGBrgb(78, 26, 128)
HSLhsl(271, 66%, 30%)
HSVhsv(271, 80%, 50%)
CMYKcmyk(39.1%, 79.7%, 0%, 49.8%)
CIE-LABlab(23.40, 43.76, -47.23)
CIE-LCHlch(23.40, 64.39, 312.81°)
OKLaboklab(35.95% 0.0837 -0.1348)
OKLCHoklch(35.95% 0.159 301.8)
XYZxyz(7.4066, 3.9170, 20.7837)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A80 #4C801A
analogous
#1B1A80 #4E1A80 #801A7F
triadic
#4E1A80 #804E1A #1A804E
tetradic
#4E1A80 #801B1A #4C801A #1A7F80
square
#4E1A80 #801B1A #4C801A #1A7F80
split-complementary
#4E1A80 #7F801A #1A801B
monochromatic
#10051A #2F104D #4E1A80 #6D24B3 #8C3DD8

Accessibility & contrast

On white

11.78
#4E1A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E1A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A80
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A80#FFFFFF#000000##FFFFFF
##4E1A801.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#43354C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1a80;
/* rgb */ color: rgb(78, 26, 128);
/* oklch */ color: oklch(35.9% 0.159 301.8);
Tailwind
colors: {
  custom: {
    50: '#855da6',
    500: '#4e1a80',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a80;
$custom-light: #855da6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a80",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 270.588,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35946,
    "c": 0.15873,
    "h": 301.8
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#4E1A80
secondary
#7AB442
accent
#E93F92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1A80

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

Preview Lab → · Contrast checker → · Palette generator →

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