#4E31A4#4E31A4

#4E31A4 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.174 H 288.1°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#4E31A4
RGBrgb(78, 49, 164)
HSLhsl(255, 54%, 42%)
HSVhsv(255, 70%, 64%)
CMYKcmyk(52.4%, 70.1%, 0%, 35.7%)
CIE-LABlab(30.63, 42.22, -57.63)
CIE-LCHlch(30.63, 71.44, 306.22°)
OKLaboklab(42.04% 0.054 -0.1655)
OKLCHoklch(42.04% 0.174 288.1)
XYZxyz(10.9391, 6.4961, 35.7922)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31A4 #87A431
analogous
#314EA4 #4E31A4 #8831A4
triadic
#4E31A4 #A44E31 #31A44E
tetradic
#4E31A4 #A4314E #87A431 #31A488
square
#4E31A4 #A4314E #87A431 #31A488
split-complementary
#4E31A4 #A48831 #4EA431
monochromatic
#211546 #382375 #4E31A4 #6A49C9 #9079D7

Accessibility & contrast

On white

9.13
#4E31A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4E31A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31A4
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31A4#FFFFFF#000000##FFFFFF
##4E31A41.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#2E4F67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e31a4;
/* rgb */ color: rgb(78, 49, 164);
/* oklch */ color: oklch(42.0% 0.174 288.1);
Tailwind
colors: {
  custom: {
    50: '#886bc0',
    500: '#4e31a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e31a4;
$custom-light: #886bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31a4",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 255.13,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42042,
    "c": 0.17409,
    "h": 288.1
  },
  "luminance": 0.06497
}

Semantic roles & 50–950 ramp

primary
#4E31A4
secondary
#ACBF72
accent
#DD4AB8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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