#4E31A9#4E31A9

#4E31A9 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.180 H 287.1°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4E31A9
RGBrgb(78, 49, 169)
HSLhsl(255, 55%, 43%)
HSVhsv(255, 71%, 66%)
CMYKcmyk(53.8%, 71%, 0%, 33.7%)
CIE-LABlab(31.07, 43.70, -59.93)
CIE-LCHlch(31.07, 74.17, 306.10°)
OKLaboklab(42.49% 0.0531 -0.1722)
OKLCHoklch(42.49% 0.18 287.1)
XYZxyz(11.3995, 6.6803, 38.2172)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31A9 #8CA931
analogous
#3150A9 #4E31A9 #8A31A9
triadic
#4E31A9 #A94E31 #31A94E
tetradic
#4E31A9 #A93150 #8CA931 #31A98A
square
#4E31A9 #A93150 #8CA931 #31A98A
split-complementary
#4E31A9 #A98A31 #50A931
monochromatic
#22154A #38237A #4E31A9 #6B4CCB #927CD9

Accessibility & contrast

On white

8.99
#4E31A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E31A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31A9
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31A9#FFFFFF#000000##FFFFFF
##4E31A91.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#295069
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e31a9;
/* rgb */ color: rgb(78, 49, 169);
/* oklch */ color: oklch(42.5% 0.180 287.1);
Tailwind
colors: {
  custom: {
    50: '#896cc4',
    500: '#4e31a9',
    950: '#000000',
  },
}
SCSS
$custom: #4e31a9;
$custom-light: #896cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31a9",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 254.5,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42488,
    "c": 0.18023,
    "h": 287.1
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#4E31A9
secondary
#AFC174
accent
#DE49BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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