#4E1F86#4E1F86

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

Color values

HEX#4E1F86
RGBrgb(78, 31, 134)
HSLhsl(267, 62%, 32%)
HSVhsv(267, 77%, 53%)
CMYKcmyk(41.8%, 76.9%, 0%, 47.5%)
CIE-LABlab(24.70, 43.07, -48.87)
CIE-LCHlch(24.70, 65.14, 311.39°)
OKLaboklab(37.03% 0.0776 -0.1397)
OKLCHoklch(37.03% 0.16 299)
XYZxyz(7.9339, 4.3208, 22.9656)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F86 #57861F
analogous
#1F2386 #4E1F86 #821F86
triadic
#4E1F86 #864E1F #1F864E
tetradic
#4E1F86 #861F23 #57861F #1F8682
square
#4E1F86 #861F23 #57861F #1F8682
split-complementary
#4E1F86 #86821F #23861F
monochromatic
#140823 #311454 #4E1F86 #6B2AB8 #8A4AD5

Accessibility & contrast

On white

11.26
#4E1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1F86
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F86#FFFFFF#000000##FFFFFF
##4E1F861.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#403A51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1f86;
/* rgb */ color: rgb(78, 31, 134);
/* oklch */ color: oklch(37.0% 0.160 299.0);
Tailwind
colors: {
  custom: {
    50: '#8560aa',
    500: '#4e1f86',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f86;
$custom-light: #8560aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f86",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 267.379,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37029,
    "c": 0.15978,
    "h": 299
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#4E1F86
secondary
#85B849
accent
#E5429B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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