#4E31A0#4E31A0

#4E31A0 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.169 H 288.9°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4E31A0
RGBrgb(78, 49, 160)
HSLhsl(256, 53%, 41%)
HSVhsv(256, 69%, 63%)
CMYKcmyk(51.2%, 69.4%, 0%, 37.3%)
CIE-LABlab(30.29, 41.03, -55.77)
CIE-LCHlch(30.29, 69.24, 306.34°)
OKLaboklab(41.69% 0.0547 -0.16)
OKLCHoklch(41.69% 0.169 288.9)
XYZxyz(10.5835, 6.3539, 33.9197)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31A0 #83A031
analogous
#314BA0 #4E31A0 #8531A0
triadic
#4E31A0 #A04E31 #31A04E
tetradic
#4E31A0 #A0314B #83A031 #31A085
square
#4E31A0 #A0314B #83A031 #31A085
split-complementary
#4E31A0 #A08531 #4BA031
monochromatic
#201442 #372371 #4E31A0 #6947C7 #8F76D5

Accessibility & contrast

On white

9.25
#4E31A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E31A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31A0
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31A0#FFFFFF#000000##FFFFFF
##4E31A01.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#314D64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e31a0;
/* rgb */ color: rgb(78, 49, 160);
/* oklch */ color: oklch(41.7% 0.169 288.9);
Tailwind
colors: {
  custom: {
    50: '#876bbd',
    500: '#4e31a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e31a0;
$custom-light: #876bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31a0",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 160
  },
  "hsl": {
    "h": 255.676,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4169,
    "c": 0.16914,
    "h": 288.9
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E31A0

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

Preview Lab → · Contrast checker → · Palette generator →

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