#4E3AA6#4E3AA6

#4E3AA6 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.6% C 0.165 H 285.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#4E3AA6
RGBrgb(78, 58, 166)
HSLhsl(251, 48%, 44%)
HSVhsv(251, 65%, 65%)
CMYKcmyk(53%, 65.1%, 0%, 34.9%)
CIE-LABlab(32.70, 37.65, -55.47)
CIE-LCHlch(32.70, 67.04, 304.17°)
OKLaboklab(43.58% 0.045 -0.1592)
OKLCHoklch(43.58% 0.165 285.8)
XYZxyz(11.5358, 7.3984, 36.8892)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3AA6 #92A63A
analogous
#3A5CA6 #4E3AA6 #843AA6
triadic
#4E3AA6 #A64E3A #3AA64E
tetradic
#4E3AA6 #A63A5C #92A63A #3AA684
square
#4E3AA6 #A63A5C #92A63A #3AA684
split-complementary
#4E3AA6 #A6843A #5CA63A
monochromatic
#231A4B #392A79 #4E3AA6 #6C58C5 #9486D5

Accessibility & contrast

On white

8.47
#4E3AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4E3AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3AA6
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3AA6#FFFFFF#000000##FFFFFF
##4E3AA61.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#2B546A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e3aa6;
/* rgb */ color: rgb(78, 58, 166);
/* oklch */ color: oklch(43.6% 0.165 285.8);
Tailwind
colors: {
  custom: {
    50: '#8871c1',
    500: '#4e3aa6',
    950: '#000000',
  },
}
SCSS
$custom: #4e3aa6;
$custom-light: #8871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3aa6",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 251.111,
    "s": 48.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43581,
    "c": 0.16538,
    "h": 285.8
  },
  "luminance": 0.07399
}

Semantic roles & 50–950 ramp

primary
#4E3AA6
secondary
#B3BF7D
accent
#D850BF
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E3AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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