#4E31BA#4E31BA

#4E31BA is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.1% C 0.201 H 284.3°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#4E31BA
RGBrgb(78, 49, 186)
HSLhsl(253, 58%, 46%)
HSVhsv(253, 74%, 73%)
CMYKcmyk(58.1%, 73.7%, 0%, 27.1%)
CIE-LABlab(32.61, 48.73, -67.52)
CIE-LCHlch(32.61, 83.27, 305.82°)
OKLaboklab(44.06% 0.0494 -0.1945)
OKLCHoklch(44.06% 0.201 284.3)
XYZxyz(13.1004, 7.3607, 47.1753)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31BA #9DBA31
analogous
#3158BA #4E31BA #9231BA
triadic
#4E31BA #BA4E31 #31BA4E
tetradic
#4E31BA #BA3158 #9DBA31 #31BA92
square
#4E31BA #BA3158 #9DBA31 #31BA92
split-complementary
#4E31BA #BA9231 #58BA31
monochromatic
#251759 #3A248A #4E31BA #7056D2 #9986DF

Accessibility & contrast

On white

8.49
#4E31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4E31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31BA
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31BA#FFFFFF#000000##FFFFFF
##4E31BA1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BE
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#115773
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e31ba;
/* rgb */ color: rgb(78, 49, 186);
/* oklch */ color: oklch(44.1% 0.201 284.3);
Tailwind
colors: {
  custom: {
    50: '#8c6cd0',
    500: '#4e31ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e31ba;
$custom-light: #8c6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31ba",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 252.701,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44058,
    "c": 0.20066,
    "h": 284.3
  },
  "luminance": 0.07361
}

Semantic roles & 50–950 ramp

primary
#4E31BA
secondary
#B9C97E
accent
#E246C1
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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