#4E3AA8#4E3AA8

#4E3AA8 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.7% C 0.168 H 285.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#4E3AA8
RGBrgb(78, 58, 168)
HSLhsl(251, 49%, 44%)
HSVhsv(251, 65%, 66%)
CMYKcmyk(53.6%, 65.5%, 0%, 34.1%)
CIE-LABlab(32.86, 38.27, -56.40)
CIE-LCHlch(32.86, 68.16, 304.16°)
OKLaboklab(43.75% 0.0448 -0.1619)
OKLCHoklch(43.75% 0.168 285.5)
XYZxyz(11.7207, 7.4723, 37.8629)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3AA8 #94A83A
analogous
#3A5DA8 #4E3AA8 #853AA8
triadic
#4E3AA8 #A84E3A #3AA84E
tetradic
#4E3AA8 #A83A5D #94A83A #3AA885
square
#4E3AA8 #A83A5D #94A83A #3AA885
split-complementary
#4E3AA8 #A8853A #5DA83A
monochromatic
#241B4D #392A7B #4E3AA8 #6D59C6 #9587D6

Accessibility & contrast

On white

8.42
#4E3AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4E3AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3AA8
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3AA8#FFFFFF#000000##FFFFFF
##4E3AA81.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#29556C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e3aa8;
/* rgb */ color: rgb(78, 58, 168);
/* oklch */ color: oklch(43.7% 0.168 285.5);
Tailwind
colors: {
  custom: {
    50: '#8871c3',
    500: '#4e3aa8',
    950: '#000000',
  },
}
SCSS
$custom: #4e3aa8;
$custom-light: #8871c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3aa8",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 250.909,
    "s": 48.673,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43749,
    "c": 0.16798,
    "h": 285.5
  },
  "luminance": 0.07473
}

Semantic roles & 50–950 ramp

primary
#4E3AA8
secondary
#B4C07E
accent
#D850BF
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E3AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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