#4E31B6#4E31B6

#4E31B6 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.196 H 284.9°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4E31B6
RGBrgb(78, 49, 182)
HSLhsl(253, 58%, 45%)
HSVhsv(253, 73%, 71%)
CMYKcmyk(57.1%, 73.1%, 0%, 28.6%)
CIE-LABlab(32.24, 47.55, -65.76)
CIE-LCHlch(32.24, 81.15, 305.87°)
OKLaboklab(43.68% 0.0503 -0.1893)
OKLCHoklch(43.68% 0.196 284.9)
XYZxyz(12.6811, 7.1930, 44.9671)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31B6 #99B631
analogous
#3156B6 #4E31B6 #9131B6
triadic
#4E31B6 #B64E31 #31B64E
tetradic
#4E31B6 #B63156 #99B631 #31B691
square
#4E31B6 #B63156 #99B631 #31B691
split-complementary
#4E31B6 #B69131 #56B631
monochromatic
#251756 #392486 #4E31B6 #6F53D1 #9784DE

Accessibility & contrast

On white

8.61
#4E31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4E31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31B6
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31B6#FFFFFF#000000##FFFFFF
##4E31B61.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#195571
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e31b6;
/* rgb */ color: rgb(78, 49, 182);
/* oklch */ color: oklch(43.7% 0.196 284.9);
Tailwind
colors: {
  custom: {
    50: '#8b6ccd',
    500: '#4e31b6',
    950: '#000000',
  },
}
SCSS
$custom: #4e31b6;
$custom-light: #8b6ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31b6",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 253.083,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43682,
    "c": 0.19592,
    "h": 284.9
  },
  "luminance": 0.07194
}

Semantic roles & 50–950 ramp

primary
#4E31B6
secondary
#B7C77C
accent
#E147BF
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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