#4E31B7#4E31B7

#4E31B7 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.197 H 284.7°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4E31B7
RGBrgb(78, 49, 183)
HSLhsl(253, 58%, 45%)
HSVhsv(253, 73%, 72%)
CMYKcmyk(57.4%, 73.2%, 0%, 28.2%)
CIE-LABlab(32.33, 47.85, -66.20)
CIE-LCHlch(32.33, 81.68, 305.86°)
OKLaboklab(43.78% 0.0501 -0.1906)
OKLCHoklch(43.78% 0.197 284.7)
XYZxyz(12.7848, 7.2344, 45.5133)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31B7 #9AB731
analogous
#3157B7 #4E31B7 #9131B7
triadic
#4E31B7 #B74E31 #31B74E
tetradic
#4E31B7 #B73157 #9AB731 #31B791
square
#4E31B7 #B73157 #9AB731 #31B791
split-complementary
#4E31B7 #B79131 #57B731
monochromatic
#251756 #392487 #4E31B7 #6F54D1 #9884DE

Accessibility & contrast

On white

8.58
#4E31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4E31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31B7
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31B7#FFFFFF#000000##FFFFFF
##4E31B71.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e31b7;
/* rgb */ color: rgb(78, 49, 183);
/* oklch */ color: oklch(43.8% 0.197 284.7);
Tailwind
colors: {
  custom: {
    50: '#8b6cce',
    500: '#4e31b7',
    950: '#000000',
  },
}
SCSS
$custom: #4e31b7;
$custom-light: #8b6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31b7",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 252.985,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43776,
    "c": 0.19711,
    "h": 284.7
  },
  "luminance": 0.07235
}

Semantic roles & 50–950 ramp

primary
#4E31B7
secondary
#B7C87C
accent
#E147C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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