#4E3AAB#4E3AAB

#4E3AAB is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.0% C 0.172 H 285.0°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#4E3AAB
RGBrgb(78, 58, 171)
HSLhsl(251, 49%, 45%)
HSVhsv(251, 66%, 67%)
CMYKcmyk(54.4%, 66.1%, 0%, 32.9%)
CIE-LABlab(33.10, 39.20, -57.80)
CIE-LCHlch(33.10, 69.84, 304.15°)
OKLaboklab(44% 0.0444 -0.166)
OKLCHoklch(44% 0.172 285)
XYZxyz(12.0034, 7.5854, 39.3518)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3AAB #97AB3A
analogous
#3A5FAB #4E3AAB #863AAB
triadic
#4E3AAB #AB4E3A #3AAB4E
tetradic
#4E3AAB #AB3A5F #97AB3A #3AAB86
square
#4E3AAB #AB3A5F #97AB3A #3AAB86
split-complementary
#4E3AAB #AB863A #5FAB3A
monochromatic
#241B50 #392A7D #4E3AAB #6E5BC7 #9689D7

Accessibility & contrast

On white

8.34
#4E3AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4E3AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3AAB
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3AAB#FFFFFF#000000##FFFFFF
##4E3AAB1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#26566D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e3aab;
/* rgb */ color: rgb(78, 58, 171);
/* oklch */ color: oklch(44.0% 0.172 285.0);
Tailwind
colors: {
  custom: {
    50: '#8871c5',
    500: '#4e3aab',
    950: '#000000',
  },
}
SCSS
$custom: #4e3aab;
$custom-light: #8871c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3aab",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 171
  },
  "hsl": {
    "h": 250.619,
    "s": 49.345,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44003,
    "c": 0.17185,
    "h": 285
  },
  "luminance": 0.07586
}

Semantic roles & 50–950 ramp

primary
#4E3AAB
secondary
#B6C180
accent
#D94FC0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E3AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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