#4E3996#4E3996

#4E3996 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.1% C 0.146 H 289.0°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4E3996
RGBrgb(78, 57, 150)
HSLhsl(254, 45%, 41%)
HSVhsv(254, 62%, 59%)
CMYKcmyk(48%, 62%, 0%, 41.2%)
CIE-LABlab(31.23, 33.34, -48.16)
CIE-LCHlch(31.23, 58.58, 304.69°)
OKLaboklab(42.12% 0.0474 -0.1377)
OKLCHoklch(42.12% 0.146 289)
XYZxyz(10.1085, 6.7476, 29.6180)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3996 #819639
analogous
#395296 #4E3996 #7C3996
triadic
#4E3996 #964E39 #39964E
tetradic
#4E3996 #963952 #819639 #39967C
square
#4E3996 #963952 #819639 #39967C
split-complementary
#4E3996 #967C39 #529639
monochromatic
#20173D #37286A #4E3996 #6850BC #8E7CCD

Accessibility & contrast

On white

8.94
#4E3996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E3996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3996
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3996#FFFFFF#000000##FFFFFF
##4E39961.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#374E62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e3996;
/* rgb */ color: rgb(78, 57, 150);
/* oklch */ color: oklch(42.1% 0.146 289.0);
Tailwind
colors: {
  custom: {
    50: '#8570b6',
    500: '#4e3996',
    950: '#000000',
  },
}
SCSS
$custom: #4e3996;
$custom-light: #8570b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3996",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 150
  },
  "hsl": {
    "h": 253.548,
    "s": 44.928,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42118,
    "c": 0.14561,
    "h": 289
  },
  "luminance": 0.06748
}

Semantic roles & 50–950 ramp

primary
#4E3996
secondary
#A8B774
accent
#D553B7
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3996

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

Preview Lab → · Contrast checker → · Palette generator →

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