#4E3AA5#4E3AA5

#4E3AA5 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.5% C 0.164 H 285.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#4E3AA5
RGBrgb(78, 58, 165)
HSLhsl(251, 48%, 44%)
HSVhsv(251, 65%, 65%)
CMYKcmyk(52.7%, 64.8%, 0%, 35.3%)
CIE-LABlab(32.62, 37.35, -54.99)
CIE-LCHlch(32.62, 66.48, 304.18°)
OKLaboklab(43.5% 0.0451 -0.1578)
OKLCHoklch(43.5% 0.164 285.9)
XYZxyz(11.4444, 7.3618, 36.4080)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3AA5 #91A53A
analogous
#3A5BA5 #4E3AA5 #833AA5
triadic
#4E3AA5 #A54E3A #3AA54E
tetradic
#4E3AA5 #A53A5B #91A53A #3AA583
square
#4E3AA5 #A53A5B #91A53A #3AA583
split-complementary
#4E3AA5 #A5833A #5BA53A
monochromatic
#231A4A #392A78 #4E3AA5 #6C58C4 #9485D4

Accessibility & contrast

On white

8.49
#4E3AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4E3AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3AA5
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3AA5#FFFFFF#000000##FFFFFF
##4E3AA51.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#2C546A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e3aa5;
/* rgb */ color: rgb(78, 58, 165);
/* oklch */ color: oklch(43.5% 0.164 285.9);
Tailwind
colors: {
  custom: {
    50: '#8871c1',
    500: '#4e3aa5',
    950: '#000000',
  },
}
SCSS
$custom: #4e3aa5;
$custom-light: #8871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3aa5",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 251.215,
    "s": 47.982,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43498,
    "c": 0.16409,
    "h": 285.9
  },
  "luminance": 0.07362
}

Semantic roles & 50–950 ramp

primary
#4E3AA5
secondary
#B2BE7D
accent
#D850BE
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E3AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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