#4E31AE#4E31AE

#4E31AE is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.186 H 286.2°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#4E31AE
RGBrgb(78, 49, 174)
HSLhsl(254, 56%, 44%)
HSVhsv(254, 72%, 68%)
CMYKcmyk(55.2%, 71.8%, 0%, 31.8%)
CIE-LABlab(31.51, 45.18, -62.19)
CIE-LCHlch(31.51, 76.87, 306.00°)
OKLaboklab(42.94% 0.0521 -0.1789)
OKLCHoklch(42.94% 0.186 286.2)
XYZxyz(11.8779, 6.8717, 40.7367)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31AE #91AE31
analogous
#3152AE #4E31AE #8C31AE
triadic
#4E31AE #AE4E31 #31AE4E
tetradic
#4E31AE #AE3152 #91AE31 #31AE8C
square
#4E31AE #AE3152 #91AE31 #31AE8C
split-complementary
#4E31AE #AE8C31 #52AE31
monochromatic
#23164E #39247E #4E31AE #6C4FCD #947FDB

Accessibility & contrast

On white

8.84
#4E31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4E31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31AE
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31AE#FFFFFF#000000##FFFFFF
##4E31AE1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#24526C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e31ae;
/* rgb */ color: rgb(78, 49, 174);
/* oklch */ color: oklch(42.9% 0.186 286.2);
Tailwind
colors: {
  custom: {
    50: '#8a6cc7',
    500: '#4e31ae',
    950: '#000000',
  },
}
SCSS
$custom: #4e31ae;
$custom-light: #8a6cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31ae",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 253.92,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42942,
    "c": 0.18631,
    "h": 286.2
  },
  "luminance": 0.06872
}

Semantic roles & 50–950 ramp

primary
#4E31AE
secondary
#B2C477
accent
#DF48BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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