#4E3AA2#4E3AA2

#4E3AA2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.3% C 0.160 H 286.5°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#4E3AA2
RGBrgb(78, 58, 162)
HSLhsl(252, 47%, 43%)
HSVhsv(252, 64%, 64%)
CMYKcmyk(51.9%, 64.2%, 0%, 36.5%)
CIE-LABlab(32.38, 36.42, -53.58)
CIE-LCHlch(32.38, 64.78, 304.21°)
OKLaboklab(43.25% 0.0454 -0.1536)
OKLCHoklch(43.25% 0.16 286.5)
XYZxyz(11.1746, 7.2539, 34.9867)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3AA2 #8EA23A
analogous
#3A5AA2 #4E3AA2 #823AA2
triadic
#4E3AA2 #A24E3A #3AA24E
tetradic
#4E3AA2 #A23A5A #8EA23A #3AA282
square
#4E3AA2 #A23A5A #8EA23A #3AA282
split-complementary
#4E3AA2 #A2823A #5AA23A
monochromatic
#231A48 #382A75 #4E3AA2 #6B57C3 #9384D3

Accessibility & contrast

On white

8.57
#4E3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4E3AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3AA2
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3AA2#FFFFFF#000000##FFFFFF
##4E3AA21.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#2E5368
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e3aa2;
/* rgb */ color: rgb(78, 58, 162);
/* oklch */ color: oklch(43.3% 0.160 286.5);
Tailwind
colors: {
  custom: {
    50: '#8771be',
    500: '#4e3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #4e3aa2;
$custom-light: #8771be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3aa2",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 251.538,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4325,
    "c": 0.16016,
    "h": 286.5
  },
  "luminance": 0.07254
}

Semantic roles & 50–950 ramp

primary
#4E3AA2
secondary
#B0BD7B
accent
#D751BD
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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