#4E3791#4E3791

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

Color values

HEX#4E3791
RGBrgb(78, 55, 145)
HSLhsl(255, 45%, 39%)
HSVhsv(255, 62%, 57%)
CMYKcmyk(46.2%, 62.1%, 0%, 43.1%)
CIE-LABlab(30.39, 33.03, -46.45)
CIE-LCHlch(30.39, 57.00, 305.42°)
OKLaboklab(41.39% 0.05 -0.1327)
OKLCHoklch(41.39% 0.142 290.6)
XYZxyz(9.6175, 6.3961, 27.5104)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3791 #7A9137
analogous
#374D91 #4E3791 #7B3791
triadic
#4E3791 #914E37 #37914E
tetradic
#4E3791 #91374D #7A9137 #37917B
square
#4E3791 #91374D #7A9137 #37917B
split-complementary
#4E3791 #917B37 #4D9137
monochromatic
#1E1538 #362665 #4E3791 #674BBB #8D77CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E3791#FFFFFF#000000##FFFFFF
##4E37911.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)
#004994
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#3A4C5E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e3791;
/* rgb */ color: rgb(78, 55, 145);
/* oklch */ color: oklch(41.4% 0.142 290.6);
Tailwind
colors: {
  custom: {
    50: '#856fb2',
    500: '#4e3791',
    950: '#000000',
  },
}
SCSS
$custom: #4e3791;
$custom-light: #856fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3791",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 255.333,
    "s": 45,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41389,
    "c": 0.14176,
    "h": 290.6
  },
  "luminance": 0.06396
}

Semantic roles & 50–950 ramp

primary
#4E3791
secondary
#A3B470
accent
#D553B4
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4E3791

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

Preview Lab → · Contrast checker → · Palette generator →

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