#4E3986#4E3986

#4E3986 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 40.9% C 0.124 H 292.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4E3986
RGBrgb(78, 57, 134)
HSLhsl(256, 40%, 37%)
HSVhsv(256, 57%, 53%)
CMYKcmyk(41.8%, 57.5%, 0%, 47.5%)
CIE-LABlab(30.08, 28.50, -40.17)
CIE-LCHlch(30.08, 49.25, 305.36°)
OKLaboklab(40.91% 0.0477 -0.1142)
OKLCHoklch(40.91% 0.124 292.7)
XYZxyz(8.9069, 6.2670, 23.2900)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3986 #718639
analogous
#394A86 #4E3986 #753986
triadic
#4E3986 #864E39 #39864E
tetradic
#4E3986 #86394A #718639 #398675
square
#4E3986 #86394A #718639 #398675
split-complementary
#4E3986 #867539 #4A8639
monochromatic
#1C1430 #35275B #4E3986 #674BB1 #8B75C4

Accessibility & contrast

On white

9.32
#4E3986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E3986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3986
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3986#FFFFFF#000000##FFFFFF
##4E39861.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124889
Deuteranopia (green-blind)
#184584
Tritanopia (blue-blind)
#3F495A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3986;
/* rgb */ color: rgb(78, 57, 134);
/* oklch */ color: oklch(40.9% 0.124 292.7);
Tailwind
colors: {
  custom: {
    50: '#8370aa',
    500: '#4e3986',
    950: '#000000',
  },
}
SCSS
$custom: #4e3986;
$custom-light: #8370aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3986",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 134
  },
  "hsl": {
    "h": 256.364,
    "s": 40.314,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40908,
    "c": 0.12372,
    "h": 292.7
  },
  "luminance": 0.06267
}

Semantic roles & 50–950 ramp

primary
#4E3986
secondary
#9CAD6D
accent
#D058AF
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3986

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

Preview Lab → · Contrast checker → · Palette generator →

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