#4E1E8A#4E1E8A

#4E1E8A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.165 H 297.9°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#4E1E8A
RGBrgb(78, 30, 138)
HSLhsl(267, 64%, 33%)
HSVhsv(267, 78%, 54%)
CMYKcmyk(43.5%, 78.3%, 0%, 45.9%)
CIE-LABlab(24.90, 44.57, -51.05)
CIE-LCHlch(24.90, 67.77, 311.12°)
OKLaboklab(37.28% 0.0774 -0.1461)
OKLCHoklch(37.28% 0.165 297.9)
XYZxyz(8.1924, 4.3831, 24.4542)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E8A #5A8A1E
analogous
#1E248A #4E1E8A #841E8A
triadic
#4E1E8A #8A4E1E #1E8A4E
tetradic
#4E1E8A #8A1E24 #5A8A1E #1E8A84
square
#4E1E8A #8A1E24 #5A8A1E #1E8A84
split-complementary
#4E1E8A #8A841E #248A1E
monochromatic
#150825 #321358 #4E1E8A #6A29BC #894BD8

Accessibility & contrast

On white

11.19
#4E1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E8A
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E8A#FFFFFF#000000##FFFFFF
##4E1E8A1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#3F3B53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1e8a;
/* rgb */ color: rgb(78, 30, 138);
/* oklch */ color: oklch(37.3% 0.165 297.9);
Tailwind
colors: {
  custom: {
    50: '#865fad',
    500: '#4e1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e8a;
$custom-light: #865fad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e8a",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 266.667,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37276,
    "c": 0.16534,
    "h": 297.9
  },
  "luminance": 0.04383
}

Semantic roles & 50–950 ramp

primary
#4E1E8A
secondary
#88BA4A
accent
#E7419D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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