#4E3391#4E3391

#4E3391 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.147 H 291.7°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4E3391
RGBrgb(78, 51, 145)
HSLhsl(257, 48%, 38%)
HSVhsv(257, 65%, 57%)
CMYKcmyk(46.2%, 64.8%, 0%, 43.1%)
CIE-LABlab(29.49, 35.43, -47.91)
CIE-LCHlch(29.49, 59.59, 306.48°)
OKLaboklab(40.74% 0.0546 -0.1369)
OKLCHoklch(40.74% 0.147 291.7)
XYZxyz(9.4351, 6.0314, 27.4496)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3391 #769133
analogous
#334791 #4E3391 #7D3391
triadic
#4E3391 #914E33 #33914E
tetradic
#4E3391 #913347 #769133 #33917D
square
#4E3391 #913347 #769133 #33917D
split-complementary
#4E3391 #917D33 #479133
monochromatic
#1D1336 #362364 #4E3391 #6744BD #8C71CD

Accessibility & contrast

On white

9.52
#4E3391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3391
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3391#FFFFFF#000000##FFFFFF
##4E33911.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#3A495D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3391;
/* rgb */ color: rgb(78, 51, 145);
/* oklch */ color: oklch(40.7% 0.147 291.7);
Tailwind
colors: {
  custom: {
    50: '#856cb2',
    500: '#4e3391',
    950: '#000000',
  },
}
SCSS
$custom: #4e3391;
$custom-light: #856cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3391",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 257.234,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40735,
    "c": 0.14742,
    "h": 291.7
  },
  "luminance": 0.06032
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E3391

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

Preview Lab → · Contrast checker → · Palette generator →

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