#4E31A5#4E31A5

#4E31A5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.175 H 287.9°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#4E31A5
RGBrgb(78, 49, 165)
HSLhsl(255, 54%, 42%)
HSVhsv(255, 70%, 65%)
CMYKcmyk(52.7%, 70.3%, 0%, 35.3%)
CIE-LABlab(30.72, 42.51, -58.09)
CIE-LCHlch(30.72, 71.99, 306.20°)
OKLaboklab(42.13% 0.0538 -0.1669)
OKLCHoklch(42.13% 0.175 287.9)
XYZxyz(11.0297, 6.5324, 36.2697)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31A5 #88A531
analogous
#314EA5 #4E31A5 #8831A5
triadic
#4E31A5 #A54E31 #31A54E
tetradic
#4E31A5 #A5314E #88A531 #31A588
square
#4E31A5 #A5314E #88A531 #31A588
split-complementary
#4E31A5 #A58831 #4EA531
monochromatic
#211547 #382376 #4E31A5 #6A4AC9 #9179D7

Accessibility & contrast

On white

9.10
#4E31A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E31A5
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31A5#FFFFFF#000000##FFFFFF
##4E31A51.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#2D4F67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e31a5;
/* rgb */ color: rgb(78, 49, 165);
/* oklch */ color: oklch(42.1% 0.175 287.9);
Tailwind
colors: {
  custom: {
    50: '#886bc1',
    500: '#4e31a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e31a5;
$custom-light: #886bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31a5",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 255,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4213,
    "c": 0.17533,
    "h": 287.9
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E31A5

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

Preview Lab → · Contrast checker → · Palette generator →

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