#4E3794#4E3794

#4E3794 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.6% C 0.146 H 290.0°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#4E3794
RGBrgb(78, 55, 148)
HSLhsl(255, 46%, 40%)
HSVhsv(255, 63%, 58%)
CMYKcmyk(47.3%, 62.8%, 0%, 42%)
CIE-LABlab(30.62, 33.94, -47.93)
CIE-LCHlch(30.62, 58.73, 305.30°)
OKLaboklab(41.63% 0.0498 -0.137)
OKLCHoklch(41.63% 0.146 290)
XYZxyz(9.8519, 6.4898, 28.7448)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3794 #7D9437
analogous
#374E94 #4E3794 #7D3794
triadic
#4E3794 #944E37 #37944E
tetradic
#4E3794 #94374E #7D9437 #37947D
square
#4E3794 #94374E #7D9437 #37947D
split-complementary
#4E3794 #947D37 #4E9437
monochromatic
#1F163B #362667 #4E3794 #684CBC #8D78CD

Accessibility & contrast

On white

9.14
#4E3794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4E3794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3794
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3794#FFFFFF#000000##FFFFFF
##4E37941.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#004692
Tritanopia (blue-blind)
#384D60
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e3794;
/* rgb */ color: rgb(78, 55, 148);
/* oklch */ color: oklch(41.6% 0.146 290.0);
Tailwind
colors: {
  custom: {
    50: '#856fb4',
    500: '#4e3794',
    950: '#000000',
  },
}
SCSS
$custom: #4e3794;
$custom-light: #856fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3794",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 254.839,
    "s": 45.813,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41625,
    "c": 0.14575,
    "h": 290
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#4E3794
secondary
#A5B671
accent
#D552B5
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3794

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

Preview Lab → · Contrast checker → · Palette generator →

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