#4E3987#4E3987

#4E3987 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.0% C 0.125 H 292.4°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4E3987
RGBrgb(78, 57, 135)
HSLhsl(256, 41%, 38%)
HSVhsv(256, 58%, 53%)
CMYKcmyk(42.2%, 57.8%, 0%, 47.1%)
CIE-LABlab(30.14, 28.80, -40.68)
CIE-LCHlch(30.14, 49.84, 305.30°)
OKLaboklab(40.98% 0.0477 -0.1157)
OKLCHoklch(40.98% 0.125 292.4)
XYZxyz(8.9770, 6.2950, 23.6590)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3987 #728739
analogous
#394B87 #4E3987 #753987
triadic
#4E3987 #874E39 #39874E
tetradic
#4E3987 #87394B #728739 #398775
square
#4E3987 #87394B #728739 #398775
split-complementary
#4E3987 #877539 #4B8739
monochromatic
#1C1531 #35275C #4E3987 #674BB2 #8B75C5

Accessibility & contrast

On white

9.30
#4E3987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E3987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3987
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3987#FFFFFF#000000##FFFFFF
##4E39871.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10488A
Deuteranopia (green-blind)
#164585
Tritanopia (blue-blind)
#3F4A5A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3987;
/* rgb */ color: rgb(78, 57, 135);
/* oklch */ color: oklch(41.0% 0.125 292.4);
Tailwind
colors: {
  custom: {
    50: '#8470aa',
    500: '#4e3987',
    950: '#000000',
  },
}
SCSS
$custom: #4e3987;
$custom-light: #8470aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3987",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 256.154,
    "s": 40.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40981,
    "c": 0.12512,
    "h": 292.4
  },
  "luminance": 0.06295
}

Semantic roles & 50–950 ramp

primary
#4E3987
secondary
#9DAE6E
accent
#D057B0
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3987

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

Preview Lab → · Contrast checker → · Palette generator →

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