#4E3A87#4E3A87

#4E3A87 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.2% C 0.124 H 292.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4E3A87
RGBrgb(78, 58, 135)
HSLhsl(256, 40%, 38%)
HSVhsv(256, 57%, 53%)
CMYKcmyk(42.2%, 57%, 0%, 47.1%)
CIE-LABlab(30.39, 28.18, -40.29)
CIE-LCHlch(30.39, 49.16, 304.97°)
OKLaboklab(41.16% 0.0464 -0.1145)
OKLCHoklch(41.16% 0.124 292.1)
XYZxyz(9.0269, 6.3948, 23.6757)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3A87 #73873A
analogous
#3A4D87 #4E3A87 #743A87
triadic
#4E3A87 #874E3A #3A874E
tetradic
#4E3A87 #873A4D #73873A #3A8774
square
#4E3A87 #873A4D #73873A #3A8774
split-complementary
#4E3A87 #87743A #4D873A
monochromatic
#1D1531 #35285C #4E3A87 #674CB2 #8B77C5

Accessibility & contrast

On white

9.21
#4E3A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E3A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3A87
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3A87#FFFFFF#000000##FFFFFF
##4E3A871.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498A
Deuteranopia (green-blind)
#184685
Tritanopia (blue-blind)
#3F4A5A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e3a87;
/* rgb */ color: rgb(78, 58, 135);
/* oklch */ color: oklch(41.2% 0.124 292.1);
Tailwind
colors: {
  custom: {
    50: '#8371aa',
    500: '#4e3a87',
    950: '#000000',
  },
}
SCSS
$custom: #4e3a87;
$custom-light: #8371aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3a87",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 255.584,
    "s": 39.896,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4116,
    "c": 0.12356,
    "h": 292.1
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#4E3A87
secondary
#9EAE6F
accent
#D058B1
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3A87

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

Preview Lab → · Contrast checker → · Palette generator →

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