#4E1E87#4E1E87

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

Color values

HEX#4E1E87
RGBrgb(78, 30, 135)
HSLhsl(267, 64%, 32%)
HSVhsv(267, 78%, 53%)
CMYKcmyk(42.2%, 77.8%, 0%, 47.1%)
CIE-LABlab(24.63, 43.79, -49.62)
CIE-LCHlch(24.63, 66.18, 311.43°)
OKLaboklab(37% 0.0782 -0.1419)
OKLCHoklch(37% 0.162 298.9)
XYZxyz(7.9782, 4.2974, 23.3261)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E87 #57871E
analogous
#1E2287 #4E1E87 #831E87
triadic
#4E1E87 #874E1E #1E874E
tetradic
#4E1E87 #871E22 #57871E #1E8783
square
#4E1E87 #871E22 #57871E #1E8783
split-complementary
#4E1E87 #87831E #22871E
monochromatic
#140823 #311355 #4E1E87 #6B29B9 #8A49D7

Accessibility & contrast

On white

11.29
#4E1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E87
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E87#FFFFFF#000000##FFFFFF
##4E1E871.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#403A51
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e1e87;
/* rgb */ color: rgb(78, 30, 135);
/* oklch */ color: oklch(37.0% 0.162 298.9);
Tailwind
colors: {
  custom: {
    50: '#855fab',
    500: '#4e1e87',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e87;
$custom-light: #855fab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e87",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 267.429,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37005,
    "c": 0.16201,
    "h": 298.9
  },
  "luminance": 0.04298
}

Semantic roles & 50–950 ramp

primary
#4E1E87
secondary
#85B948
accent
#E7419B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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