#4E31B5#4E31B5

#4E31B5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.195 H 285.0°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4E31B5
RGBrgb(78, 49, 181)
HSLhsl(253, 57%, 45%)
HSVhsv(253, 73%, 71%)
CMYKcmyk(56.9%, 72.9%, 0%, 29%)
CIE-LABlab(32.15, 47.26, -65.32)
CIE-LCHlch(32.15, 80.62, 305.88°)
OKLaboklab(43.59% 0.0506 -0.188)
OKLCHoklch(43.59% 0.195 285)
XYZxyz(12.5782, 7.1518, 44.4247)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31B5 #98B531
analogous
#3156B5 #4E31B5 #9031B5
triadic
#4E31B5 #B54E31 #31B54E
tetradic
#4E31B5 #B53156 #98B531 #31B590
square
#4E31B5 #B53156 #98B531 #31B590
split-complementary
#4E31B5 #B59031 #56B531
monochromatic
#241755 #392485 #4E31B5 #6E53D0 #9783DD

Accessibility & contrast

On white

8.64
#4E31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4E31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31B5
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31B5#FFFFFF#000000##FFFFFF
##4E31B51.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#1B5570
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e31b5;
/* rgb */ color: rgb(78, 49, 181);
/* oklch */ color: oklch(43.6% 0.195 285.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ccc',
    500: '#4e31b5',
    950: '#000000',
  },
}
SCSS
$custom: #4e31b5;
$custom-light: #8b6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31b5",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 253.182,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43588,
    "c": 0.19473,
    "h": 285
  },
  "luminance": 0.07153
}

Semantic roles & 50–950 ramp

primary
#4E31B5
secondary
#B6C77B
accent
#E147BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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