#4E31AD#4E31AD

#4E31AD is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.185 H 286.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#4E31AD
RGBrgb(78, 49, 173)
HSLhsl(254, 56%, 44%)
HSVhsv(254, 72%, 68%)
CMYKcmyk(54.9%, 71.7%, 0%, 32.2%)
CIE-LABlab(31.42, 44.89, -61.74)
CIE-LCHlch(31.42, 76.33, 306.02°)
OKLaboklab(42.85% 0.0523 -0.1776)
OKLCHoklch(42.85% 0.185 286.4)
XYZxyz(11.7808, 6.8328, 40.2252)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31AD #90AD31
analogous
#3152AD #4E31AD #8C31AD
triadic
#4E31AD #AD4E31 #31AD4E
tetradic
#4E31AD #AD3152 #90AD31 #31AD8C
square
#4E31AD #AD3152 #90AD31 #31AD8C
split-complementary
#4E31AD #AD8C31 #52AD31
monochromatic
#23164E #38237D #4E31AD #6C4ECD #947EDA

Accessibility & contrast

On white

8.87
#4E31AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E31AD
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31AD#FFFFFF#000000##FFFFFF
##4E31AD1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB1
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#25526C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e31ad;
/* rgb */ color: rgb(78, 49, 173);
/* oklch */ color: oklch(42.9% 0.185 286.4);
Tailwind
colors: {
  custom: {
    50: '#896cc6',
    500: '#4e31ad',
    950: '#000000',
  },
}
SCSS
$custom: #4e31ad;
$custom-light: #896cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31ad",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 254.032,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4285,
    "c": 0.1851,
    "h": 286.4
  },
  "luminance": 0.06833
}

Semantic roles & 50–950 ramp

primary
#4E31AD
secondary
#B1C377
accent
#DF49BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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