#4E1A8C#4E1A8C

#4E1A8C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.172 H 297.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#4E1A8C
RGBrgb(78, 26, 140)
HSLhsl(267, 69%, 33%)
HSVhsv(267, 81%, 55%)
CMYKcmyk(44.3%, 81.4%, 0%, 45.1%)
CIE-LABlab(24.49, 46.81, -52.98)
CIE-LCHlch(24.49, 70.70, 311.47°)
OKLaboklab(37.04% 0.0802 -0.1517)
OKLCHoklch(37.04% 0.172 297.9)
XYZxyz(8.2437, 4.2518, 25.1922)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A8C #588C1A
analogous
#1A1F8C #4E1A8C #871A8C
triadic
#4E1A8C #8C4E1A #1A8C4E
tetradic
#4E1A8C #8C1A1F #588C1A #1A8C87
square
#4E1A8C #8C1A1F #588C1A #1A8C87
split-complementary
#4E1A8C #8C871A #1F8C1A
monochromatic
#140725 #311058 #4E1A8C #6B24C0 #8A44DC

Accessibility & contrast

On white

11.35
#4E1A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E1A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A8C
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A8C#FFFFFF#000000##FFFFFF
##4E1A8C1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#3E3A53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e1a8c;
/* rgb */ color: rgb(78, 26, 140);
/* oklch */ color: oklch(37.0% 0.172 297.9);
Tailwind
colors: {
  custom: {
    50: '#865eaf',
    500: '#4e1a8c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a8c;
$custom-light: #865eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a8c",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 267.368,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37044,
    "c": 0.17158,
    "h": 297.9
  },
  "luminance": 0.04252
}

Semantic roles & 50–950 ramp

primary
#4E1A8C
secondary
#86BE44
accent
#EC3C9C
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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