#4E31B1#4E31B1

#4E31B1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.190 H 285.7°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4E31B1
RGBrgb(78, 49, 177)
HSLhsl(254, 57%, 44%)
HSVhsv(254, 72%, 69%)
CMYKcmyk(55.9%, 72.3%, 0%, 30.6%)
CIE-LABlab(31.78, 46.07, -63.54)
CIE-LCHlch(31.78, 78.49, 305.94°)
OKLaboklab(43.22% 0.0514 -0.1828)
OKLCHoklch(43.22% 0.19 285.7)
XYZxyz(12.1736, 6.9900, 42.2942)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31B1 #94B131
analogous
#3154B1 #4E31B1 #8E31B1
triadic
#4E31B1 #B14E31 #31B14E
tetradic
#4E31B1 #B13154 #94B131 #31B18E
square
#4E31B1 #B13154 #94B131 #31B18E
split-complementary
#4E31B1 #B18E31 #54B131
monochromatic
#241651 #392481 #4E31B1 #6D51CF #9580DC

Accessibility & contrast

On white

8.76
#4E31B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4E31B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31B1
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31B1#FFFFFF#000000##FFFFFF
##4E31B11.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#20536E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e31b1;
/* rgb */ color: rgb(78, 49, 177);
/* oklch */ color: oklch(43.2% 0.190 285.7);
Tailwind
colors: {
  custom: {
    50: '#8a6cc9',
    500: '#4e31b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e31b1;
$custom-light: #8a6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31b1",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 253.594,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43217,
    "c": 0.18993,
    "h": 285.7
  },
  "luminance": 0.06991
}

Semantic roles & 50–950 ramp

primary
#4E31B1
secondary
#B4C579
accent
#E048BD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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