#4E3486#4E3486

#4E3486 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.0% C 0.131 H 294.3°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4E3486
RGBrgb(78, 52, 134)
HSLhsl(259, 44%, 36%)
HSVhsv(259, 61%, 53%)
CMYKcmyk(41.8%, 61.2%, 0%, 47.5%)
CIE-LABlab(28.89, 31.59, -42.07)
CIE-LCHlch(28.89, 52.61, 306.90°)
OKLaboklab(40.04% 0.0541 -0.1198)
OKLCHoklch(40.04% 0.131 294.3)
XYZxyz(8.6718, 5.7967, 23.2116)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3486 #6C8634
analogous
#344386 #4E3486 #773486
triadic
#4E3486 #864E34 #34864E
tetradic
#4E3486 #863443 #6C8634 #348677
square
#4E3486 #863443 #6C8634 #348677
split-complementary
#4E3486 #867734 #438634
monochromatic
#1B122E #34235A #4E3486 #6845B2 #8A6EC7

Accessibility & contrast

On white

9.72
#4E3486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E3486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3486
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3486#FFFFFF#000000##FFFFFF
##4E34861.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#0B4384
Tritanopia (blue-blind)
#3F4658
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3486;
/* rgb */ color: rgb(78, 52, 134);
/* oklch */ color: oklch(40.0% 0.131 294.3);
Tailwind
colors: {
  custom: {
    50: '#846caa',
    500: '#4e3486',
    950: '#000000',
  },
}
SCSS
$custom: #4e3486;
$custom-light: #846caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3486",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 134
  },
  "hsl": {
    "h": 259.024,
    "s": 44.086,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40039,
    "c": 0.13142,
    "h": 294.3
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#4E3486
secondary
#98AF67
accent
#D454AB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3486

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

Preview Lab → · Contrast checker → · Palette generator →

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