#4E3887#4E3887

#4E3887 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 40.8% C 0.127 H 292.7°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#4E3887
RGBrgb(78, 56, 135)
HSLhsl(257, 41%, 37%)
HSVhsv(257, 59%, 53%)
CMYKcmyk(42.2%, 58.5%, 0%, 47.1%)
CIE-LABlab(29.90, 29.42, -41.06)
CIE-LCHlch(29.90, 50.52, 305.62°)
OKLaboklab(40.8% 0.049 -0.1168)
OKLCHoklch(40.8% 0.127 292.7)
XYZxyz(8.9281, 6.1971, 23.6427)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3887 #718738
analogous
#384987 #4E3887 #763887
triadic
#4E3887 #874E38 #38874E
tetradic
#4E3887 #873849 #718738 #388776
square
#4E3887 #873849 #718738 #388776
split-complementary
#4E3887 #877638 #498738
monochromatic
#1C1430 #35265C #4E3887 #674AB2 #8B74C5

Accessibility & contrast

On white

9.38
#4E3887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E3887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3887
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3887#FFFFFF#000000##FFFFFF
##4E38871.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C478A
Deuteranopia (green-blind)
#144585
Tritanopia (blue-blind)
#3F495A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3887;
/* rgb */ color: rgb(78, 56, 135);
/* oklch */ color: oklch(40.8% 0.127 292.7);
Tailwind
colors: {
  custom: {
    50: '#846faa',
    500: '#4e3887',
    950: '#000000',
  },
}
SCSS
$custom: #4e3887;
$custom-light: #846faa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3887",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 256.709,
    "s": 41.361,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40803,
    "c": 0.12666,
    "h": 292.7
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

primary
#4E3887
secondary
#9CAE6D
accent
#D157AF
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3887

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

Preview Lab → · Contrast checker → · Palette generator →

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