#4E3392#4E3392

#4E3392 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.8% C 0.149 H 291.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4E3392
RGBrgb(78, 51, 146)
HSLhsl(257, 48%, 39%)
HSVhsv(257, 65%, 57%)
CMYKcmyk(46.6%, 65.1%, 0%, 42.7%)
CIE-LABlab(29.57, 35.72, -48.40)
CIE-LCHlch(29.57, 60.16, 306.43°)
OKLaboklab(40.82% 0.0545 -0.1384)
OKLCHoklch(40.82% 0.149 291.5)
XYZxyz(9.5126, 6.0624, 27.8575)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3392 #779233
analogous
#334792 #4E3392 #7D3392
triadic
#4E3392 #924E33 #33924E
tetradic
#4E3392 #923347 #779233 #33927D
square
#4E3392 #923347 #779233 #33927D
split-complementary
#4E3392 #927D33 #479233
monochromatic
#1E1337 #362365 #4E3392 #6744BE #8C72CE

Accessibility & contrast

On white

9.49
#4E3392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E3392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3392
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3392#FFFFFF#000000##FFFFFF
##4E33921.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004795
Deuteranopia (green-blind)
#004490
Tritanopia (blue-blind)
#3A495D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3392;
/* rgb */ color: rgb(78, 51, 146);
/* oklch */ color: oklch(40.8% 0.149 291.5);
Tailwind
colors: {
  custom: {
    50: '#856cb3',
    500: '#4e3392',
    950: '#000000',
  },
}
SCSS
$custom: #4e3392;
$custom-light: #856cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3392",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 146
  },
  "hsl": {
    "h": 257.053,
    "s": 48.223,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40816,
    "c": 0.14872,
    "h": 291.5
  },
  "luminance": 0.06063
}

Semantic roles & 50–950 ramp

primary
#4E3392
secondary
#A1B66B
accent
#D850B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3392

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

Preview Lab → · Contrast checker → · Palette generator →

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