#4E1A8F#4E1A8F

#4E1A8F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.175 H 296.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4E1A8F
RGBrgb(78, 26, 143)
HSLhsl(267, 69%, 33%)
HSVhsv(267, 82%, 56%)
CMYKcmyk(45.5%, 81.8%, 0%, 43.9%)
CIE-LABlab(24.77, 47.58, -54.38)
CIE-LCHlch(24.77, 72.26, 311.19°)
OKLaboklab(37.33% 0.0792 -0.1558)
OKLCHoklch(37.33% 0.175 296.9)
XYZxyz(8.4679, 4.3415, 26.3731)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A8F #5B8F1A
analogous
#1A208F #4E1A8F #881A8F
triadic
#4E1A8F #8F4E1A #1A8F4E
tetradic
#4E1A8F #8F1A20 #5B8F1A #1A8F88
square
#4E1A8F #8F1A20 #5B8F1A #1A8F88
split-complementary
#4E1A8F #8F881A #208F1A
monochromatic
#160727 #32115B #4E1A8F #6A23C3 #8946DD

Accessibility & contrast

On white

11.24
#4E1A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E1A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A8F
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A8F#FFFFFF#000000##FFFFFF
##4E1A8F1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#3C3B55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1a8f;
/* rgb */ color: rgb(78, 26, 143);
/* oklch */ color: oklch(37.3% 0.175 296.9);
Tailwind
colors: {
  custom: {
    50: '#875eb1',
    500: '#4e1a8f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a8f;
$custom-light: #875eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a8f",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 266.667,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37327,
    "c": 0.17477,
    "h": 296.9
  },
  "luminance": 0.04342
}

Semantic roles & 50–950 ramp

primary
#4E1A8F
secondary
#89BF46
accent
#EC3C9E
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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