#4E31A1#4E31A1

#4E31A1 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.170 H 288.7°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4E31A1
RGBrgb(78, 49, 161)
HSLhsl(256, 53%, 41%)
HSVhsv(256, 70%, 63%)
CMYKcmyk(51.6%, 69.6%, 0%, 36.9%)
CIE-LABlab(30.37, 41.32, -56.24)
CIE-LCHlch(30.37, 69.79, 306.31°)
OKLaboklab(41.78% 0.0545 -0.1614)
OKLCHoklch(41.78% 0.17 288.7)
XYZxyz(10.6713, 6.3891, 34.3822)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31A1 #84A131
analogous
#314CA1 #4E31A1 #8631A1
triadic
#4E31A1 #A14E31 #31A14E
tetradic
#4E31A1 #A1314C #84A131 #31A186
square
#4E31A1 #A1314C #84A131 #31A186
split-complementary
#4E31A1 #A18631 #4CA131
monochromatic
#211443 #372372 #4E31A1 #6948C7 #8F77D6

Accessibility & contrast

On white

9.22
#4E31A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E31A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31A1
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31A1#FFFFFF#000000##FFFFFF
##4E31A11.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#304E65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e31a1;
/* rgb */ color: rgb(78, 49, 161);
/* oklch */ color: oklch(41.8% 0.170 288.7);
Tailwind
colors: {
  custom: {
    50: '#886bbe',
    500: '#4e31a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e31a1;
$custom-light: #886bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31a1",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 255.536,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41778,
    "c": 0.17038,
    "h": 288.7
  },
  "luminance": 0.0639
}

Semantic roles & 50–950 ramp

primary
#4E31A1
secondary
#AABE70
accent
#DD4BB7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E31A1

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

Preview Lab → · Contrast checker → · Palette generator →

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