#4E3997#4E3997

#4E3997 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.2% C 0.147 H 288.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4E3997
RGBrgb(78, 57, 151)
HSLhsl(253, 45%, 41%)
HSVhsv(253, 62%, 59%)
CMYKcmyk(48.3%, 62.3%, 0%, 40.8%)
CIE-LABlab(31.30, 33.64, -48.65)
CIE-LCHlch(31.30, 59.15, 304.66°)
OKLaboklab(42.2% 0.0473 -0.1391)
OKLCHoklch(42.2% 0.147 288.8)
XYZxyz(10.1893, 6.7799, 30.0439)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3997 #829739
analogous
#395397 #4E3997 #7D3997
triadic
#4E3997 #974E39 #39974E
tetradic
#4E3997 #973953 #829739 #39977D
square
#4E3997 #973953 #829739 #39977D
split-complementary
#4E3997 #977D39 #539739
monochromatic
#20173E #37286B #4E3997 #6850BD #8F7DCE

Accessibility & contrast

On white

8.91
#4E3997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4E3997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3997
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3997#FFFFFF#000000##FFFFFF
##4E39971.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#364F62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e3997;
/* rgb */ color: rgb(78, 57, 151);
/* oklch */ color: oklch(42.2% 0.147 288.8);
Tailwind
colors: {
  custom: {
    50: '#8670b6',
    500: '#4e3997',
    950: '#000000',
  },
}
SCSS
$custom: #4e3997;
$custom-light: #8670b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3997",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 151
  },
  "hsl": {
    "h": 253.404,
    "s": 45.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42197,
    "c": 0.14694,
    "h": 288.8
  },
  "luminance": 0.0678
}

Semantic roles & 50–950 ramp

primary
#4E3997
secondary
#A8B775
accent
#D553B8
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3997

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

Preview Lab → · Contrast checker → · Palette generator →

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