#4E31AB#4E31AB

#4E31AB is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.183 H 286.8°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#4E31AB
RGBrgb(78, 49, 171)
HSLhsl(254, 55%, 43%)
HSVhsv(254, 71%, 67%)
CMYKcmyk(54.4%, 71.3%, 0%, 32.9%)
CIE-LABlab(31.24, 44.29, -60.84)
CIE-LCHlch(31.24, 75.25, 306.06°)
OKLaboklab(42.67% 0.0527 -0.1749)
OKLCHoklch(42.67% 0.183 286.8)
XYZxyz(11.5887, 6.7560, 39.2136)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31AB #8EAB31
analogous
#3151AB #4E31AB #8B31AB
triadic
#4E31AB #AB4E31 #31AB4E
tetradic
#4E31AB #AB3151 #8EAB31 #31AB8B
square
#4E31AB #AB3151 #8EAB31 #31AB8B
split-complementary
#4E31AB #AB8B31 #51AB31
monochromatic
#23164C #38237B #4E31AB #6B4DCC #937DDA

Accessibility & contrast

On white

8.93
#4E31AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E31AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31AB
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31AB#FFFFFF#000000##FFFFFF
##4E31AB1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#27516A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e31ab;
/* rgb */ color: rgb(78, 49, 171);
/* oklch */ color: oklch(42.7% 0.183 286.8);
Tailwind
colors: {
  custom: {
    50: '#896cc5',
    500: '#4e31ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e31ab;
$custom-light: #896cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31ab",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 254.262,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42669,
    "c": 0.18267,
    "h": 286.8
  },
  "luminance": 0.06757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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