#4E3394#4E3394

#4E3394 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.151 H 291.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4E3394
RGBrgb(78, 51, 148)
HSLhsl(257, 49%, 39%)
HSVhsv(257, 66%, 58%)
CMYKcmyk(47.3%, 65.5%, 0%, 42%)
CIE-LABlab(29.73, 36.32, -49.37)
CIE-LCHlch(29.73, 61.29, 306.34°)
OKLaboklab(40.98% 0.0543 -0.1412)
OKLCHoklch(40.98% 0.151 291)
XYZxyz(9.6695, 6.1251, 28.6840)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3394 #799433
analogous
#334994 #4E3394 #7F3394
triadic
#4E3394 #944E33 #33944E
tetradic
#4E3394 #943349 #799433 #33947F
square
#4E3394 #943349 #799433 #33947F
split-complementary
#4E3394 #947F33 #499433
monochromatic
#1E1439 #362366 #4E3394 #6745BF #8C73CF

Accessibility & contrast

On white

9.44
#4E3394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E3394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3394
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3394#FFFFFF#000000##FFFFFF
##4E33941.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#384A5F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3394;
/* rgb */ color: rgb(78, 51, 148);
/* oklch */ color: oklch(41.0% 0.151 291.0);
Tailwind
colors: {
  custom: {
    50: '#866cb4',
    500: '#4e3394',
    950: '#000000',
  },
}
SCSS
$custom: #4e3394;
$custom-light: #866cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3394",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 148
  },
  "hsl": {
    "h": 256.701,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40979,
    "c": 0.15131,
    "h": 291
  },
  "luminance": 0.06125
}

Semantic roles & 50–950 ramp

primary
#4E3394
secondary
#A2B76C
accent
#D84FB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3394

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

Preview Lab → · Contrast checker → · Palette generator →

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