#4E1A7E#4E1A7E

#4E1A7E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.157 H 302.6°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4E1A7E
RGBrgb(78, 26, 126)
HSLhsl(271, 66%, 30%)
HSVhsv(271, 79%, 49%)
CMYKcmyk(38.1%, 79.4%, 0%, 50.6%)
CIE-LABlab(23.22, 43.26, -46.25)
CIE-LCHlch(23.22, 63.33, 313.08°)
OKLaboklab(35.77% 0.0843 -0.132)
OKLCHoklch(35.77% 0.157 302.6)
XYZxyz(7.2763, 3.8648, 20.0973)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A7E #4A7E1A
analogous
#1C1A7E #4E1A7E #7E1A7C
triadic
#4E1A7E #7E4E1A #1A7E4E
tetradic
#4E1A7E #7E1C1A #4A7E1A #1A7C7E
square
#4E1A7E #7E1C1A #4A7E1A #1A7C7E
split-complementary
#4E1A7E #7C7E1A #1A7E1C
monochromatic
#100519 #2F104B #4E1A7E #6D24B1 #8C3CD7

Accessibility & contrast

On white

11.84
#4E1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A7E
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A7E#FFFFFF#000000##FFFFFF
##4E1A7E1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#44344B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1a7e;
/* rgb */ color: rgb(78, 26, 126);
/* oklch */ color: oklch(35.8% 0.157 302.6);
Tailwind
colors: {
  custom: {
    50: '#855da4',
    500: '#4e1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a7e;
$custom-light: #855da4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a7e",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 271.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35769,
    "c": 0.15658,
    "h": 302.6
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#4E1A7E
secondary
#78B242
accent
#E93F91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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