#4E31B0#4E31B0

#4E31B0 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.189 H 285.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#4E31B0
RGBrgb(78, 49, 176)
HSLhsl(254, 56%, 44%)
HSVhsv(254, 72%, 69%)
CMYKcmyk(55.7%, 72.2%, 0%, 31%)
CIE-LABlab(31.69, 45.77, -63.09)
CIE-LCHlch(31.69, 77.95, 305.96°)
OKLaboklab(43.13% 0.0516 -0.1815)
OKLCHoklch(43.13% 0.189 285.9)
XYZxyz(12.0743, 6.9502, 41.7712)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31B0 #93B031
analogous
#3154B0 #4E31B0 #8E31B0
triadic
#4E31B0 #B04E31 #31B04E
tetradic
#4E31B0 #B03154 #93B031 #31B08E
square
#4E31B0 #B03154 #93B031 #31B08E
split-complementary
#4E31B0 #B08E31 #54B031
monochromatic
#241650 #392480 #4E31B0 #6D50CE #9580DC

Accessibility & contrast

On white

8.79
#4E31B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4E31B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31B0
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31B0#FFFFFF#000000##FFFFFF
##4E31B01.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#22536D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e31b0;
/* rgb */ color: rgb(78, 49, 176);
/* oklch */ color: oklch(43.1% 0.189 285.9);
Tailwind
colors: {
  custom: {
    50: '#8a6cc9',
    500: '#4e31b0',
    950: '#000000',
  },
}
SCSS
$custom: #4e31b0;
$custom-light: #8a6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31b0",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 253.701,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43125,
    "c": 0.18872,
    "h": 285.9
  },
  "luminance": 0.06951
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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