#4E31AA#4E31AA

#4E31AA is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.181 H 286.9°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#4E31AA
RGBrgb(78, 49, 170)
HSLhsl(254, 55%, 43%)
HSVhsv(254, 71%, 67%)
CMYKcmyk(54.1%, 71.2%, 0%, 33.3%)
CIE-LABlab(31.16, 44.00, -60.38)
CIE-LCHlch(31.16, 74.71, 306.08°)
OKLaboklab(42.58% 0.0529 -0.1736)
OKLCHoklch(42.58% 0.181 286.9)
XYZxyz(11.4937, 6.7180, 38.7135)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31AA #8DAA31
analogous
#3151AA #4E31AA #8A31AA
triadic
#4E31AA #AA4E31 #31AA4E
tetradic
#4E31AA #AA3151 #8DAA31 #31AA8A
square
#4E31AA #AA3151 #8DAA31 #31AA8A
split-complementary
#4E31AA #AA8A31 #51AA31
monochromatic
#22164B #38237A #4E31AA #6B4DCC #927CD9

Accessibility & contrast

On white

8.96
#4E31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31AA
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31AA#FFFFFF#000000##FFFFFF
##4E31AA1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#28516A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e31aa;
/* rgb */ color: rgb(78, 49, 170);
/* oklch */ color: oklch(42.6% 0.181 286.9);
Tailwind
colors: {
  custom: {
    50: '#896cc4',
    500: '#4e31aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e31aa;
$custom-light: #896cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31aa",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 254.38,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42578,
    "c": 0.18145,
    "h": 286.9
  },
  "luminance": 0.06719
}

Semantic roles & 50–950 ramp

primary
#4E31AA
secondary
#AFC275
accent
#DF49BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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