#4E31A6#4E31A6

#4E31A6 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.177 H 287.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4E31A6
RGBrgb(78, 49, 166)
HSLhsl(255, 54%, 42%)
HSVhsv(255, 70%, 65%)
CMYKcmyk(53%, 70.5%, 0%, 34.9%)
CIE-LABlab(30.80, 42.81, -58.55)
CIE-LCHlch(30.80, 72.53, 306.17°)
OKLaboklab(42.22% 0.0536 -0.1682)
OKLCHoklch(42.22% 0.177 287.7)
XYZxyz(11.1211, 6.5690, 36.7509)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31A6 #89A631
analogous
#314EA6 #4E31A6 #8931A6
triadic
#4E31A6 #A64E31 #31A64E
tetradic
#4E31A6 #A6314E #89A631 #31A689
square
#4E31A6 #A6314E #89A631 #31A689
split-complementary
#4E31A6 #A68931 #4EA631
monochromatic
#221547 #382377 #4E31A6 #6A4ACA #917AD8

Accessibility & contrast

On white

9.08
#4E31A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4E31A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31A6
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31A6#FFFFFF#000000##FFFFFF
##4E31A61.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#2C4F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e31a6;
/* rgb */ color: rgb(78, 49, 166);
/* oklch */ color: oklch(42.2% 0.177 287.7);
Tailwind
colors: {
  custom: {
    50: '#886cc1',
    500: '#4e31a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e31a6;
$custom-light: #886cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31a6",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 254.872,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42219,
    "c": 0.17656,
    "h": 287.7
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#4E31A6
secondary
#ADC073
accent
#DE4AB9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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