#4E1A7A#4E1A7A

#4E1A7A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.152 H 304.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4E1A7A
RGBrgb(78, 26, 122)
HSLhsl(273, 65%, 29%)
HSVhsv(273, 79%, 48%)
CMYKcmyk(36.1%, 78.7%, 0%, 52.2%)
CIE-LABlab(22.87, 42.25, -44.27)
CIE-LCHlch(22.87, 61.20, 313.66°)
OKLaboklab(35.42% 0.0853 -0.1262)
OKLCHoklch(35.42% 0.152 304.1)
XYZxyz(7.0233, 3.7637, 18.7650)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A7A #467A1A
analogous
#1E1A7A #4E1A7A #7A1A76
triadic
#4E1A7A #7A4E1A #1A7A4E
tetradic
#4E1A7A #7A1E1A #467A1A #1A767A
square
#4E1A7A #7A1E1A #467A1A #1A767A
split-complementary
#4E1A7A #767A1A #1A7A1E
monochromatic
#100519 #2E0F48 #4E1A7A #6E25AC #8E39D5

Accessibility & contrast

On white

11.98
#4E1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1A7A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A7A#FFFFFF#000000##FFFFFF
##4E1A7A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#453249
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1a7a;
/* rgb */ color: rgb(78, 26, 122);
/* oklch */ color: oklch(35.4% 0.152 304.1);
Tailwind
colors: {
  custom: {
    50: '#845da1',
    500: '#4e1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a7a;
$custom-light: #845da1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a7a",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 272.5,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35419,
    "c": 0.15228,
    "h": 304.1
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#4E1A7A
secondary
#73AE41
accent
#E8408D
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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