#4E31A7#4E31A7

#4E31A7 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.178 H 287.5°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#4E31A7
RGBrgb(78, 49, 167)
HSLhsl(255, 55%, 42%)
HSVhsv(255, 71%, 65%)
CMYKcmyk(53.3%, 70.7%, 0%, 34.5%)
CIE-LABlab(30.89, 43.11, -59.01)
CIE-LCHlch(30.89, 73.08, 306.15°)
OKLaboklab(42.31% 0.0535 -0.1696)
OKLCHoklch(42.31% 0.178 287.5)
XYZxyz(11.2132, 6.6058, 37.2359)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31A7 #8AA731
analogous
#314FA7 #4E31A7 #8931A7
triadic
#4E31A7 #A74E31 #31A74E
tetradic
#4E31A7 #A7314F #8AA731 #31A789
square
#4E31A7 #A7314F #8AA731 #31A789
split-complementary
#4E31A7 #A78931 #4FA731
monochromatic
#221548 #382378 #4E31A7 #6A4BCA #917AD8

Accessibility & contrast

On white

9.05
#4E31A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4E31A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31A7
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31A7#FFFFFF#000000##FFFFFF
##4E31A71.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#2B5068
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e31a7;
/* rgb */ color: rgb(78, 49, 167);
/* oklch */ color: oklch(42.3% 0.178 287.5);
Tailwind
colors: {
  custom: {
    50: '#896cc2',
    500: '#4e31a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e31a7;
$custom-light: #896cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31a7",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 254.746,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42309,
    "c": 0.17778,
    "h": 287.5
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#4E31A7
secondary
#AEC173
accent
#DE4ABA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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