#4E31AC#4E31AC

#4E31AC is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.184 H 286.6°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#4E31AC
RGBrgb(78, 49, 172)
HSLhsl(254, 56%, 43%)
HSVhsv(254, 72%, 67%)
CMYKcmyk(54.7%, 71.5%, 0%, 32.5%)
CIE-LABlab(31.33, 44.59, -61.29)
CIE-LCHlch(31.33, 75.79, 306.04°)
OKLaboklab(42.76% 0.0525 -0.1762)
OKLCHoklch(42.76% 0.184 286.6)
XYZxyz(11.6844, 6.7943, 39.7175)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31AC #8FAC31
analogous
#3152AC #4E31AC #8B31AC
triadic
#4E31AC #AC4E31 #31AC4E
tetradic
#4E31AC #AC3152 #8FAC31 #31AC8B
square
#4E31AC #AC3152 #8FAC31 #31AC8B
split-complementary
#4E31AC #AC8B31 #52AC31
monochromatic
#23164D #38237C #4E31AC #6C4ECC #937DDA

Accessibility & contrast

On white

8.90
#4E31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4E31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31AC
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31AC#FFFFFF#000000##FFFFFF
##4E31AC1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#26526B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e31ac;
/* rgb */ color: rgb(78, 49, 172);
/* oklch */ color: oklch(42.8% 0.184 286.6);
Tailwind
colors: {
  custom: {
    50: '#896cc6',
    500: '#4e31ac',
    950: '#000000',
  },
}
SCSS
$custom: #4e31ac;
$custom-light: #896cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31ac",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 254.146,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42759,
    "c": 0.18388,
    "h": 286.6
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#4E31AC
secondary
#B1C376
accent
#DF49BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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