#4E3797#4E3797

#4E3797 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.9% C 0.150 H 289.3°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4E3797
RGBrgb(78, 55, 151)
HSLhsl(254, 47%, 40%)
HSVhsv(254, 64%, 59%)
CMYKcmyk(48.3%, 63.6%, 0%, 40.8%)
CIE-LABlab(30.85, 34.85, -49.39)
CIE-LCHlch(30.85, 60.45, 305.21°)
OKLaboklab(41.87% 0.0496 -0.1413)
OKLCHoklch(41.87% 0.15 289.3)
XYZxyz(10.0924, 6.5860, 30.0116)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3797 #809737
analogous
#375097 #4E3797 #7E3797
triadic
#4E3797 #974E37 #37974E
tetradic
#4E3797 #973750 #809737 #37977E
square
#4E3797 #973750 #809737 #37977E
split-complementary
#4E3797 #977E37 #509737
monochromatic
#20163D #37276A #4E3797 #684DBE #8E7ACF

Accessibility & contrast

On white

9.06
#4E3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4E3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3797
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3797#FFFFFF#000000##FFFFFF
##4E37971.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#364E61
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e3797;
/* rgb */ color: rgb(78, 55, 151);
/* oklch */ color: oklch(41.9% 0.150 289.3);
Tailwind
colors: {
  custom: {
    50: '#866fb6',
    500: '#4e3797',
    950: '#000000',
  },
}
SCSS
$custom: #4e3797;
$custom-light: #866fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3797",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 254.375,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41865,
    "c": 0.14974,
    "h": 289.3
  },
  "luminance": 0.06586
}

Semantic roles & 50–950 ramp

primary
#4E3797
secondary
#A7B872
accent
#D652B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3797

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

Preview Lab → · Contrast checker → · Palette generator →

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