#4E32AB#4E32AB

#4E32AB is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.182 H 286.6°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#4E32AB
RGBrgb(78, 50, 171)
HSLhsl(254, 55%, 43%)
HSVhsv(254, 71%, 67%)
CMYKcmyk(54.4%, 70.8%, 0%, 32.9%)
CIE-LABlab(31.44, 43.75, -60.52)
CIE-LCHlch(31.44, 74.67, 305.86°)
OKLaboklab(42.81% 0.0518 -0.174)
OKLCHoklch(42.81% 0.182 286.6)
XYZxyz(11.6310, 6.8406, 39.2277)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32AB #8FAB32
analogous
#3253AB #4E32AB #8A32AB
triadic
#4E32AB #AB4E32 #32AB4E
tetradic
#4E32AB #AB3253 #8FAB32 #32AB8A
square
#4E32AB #AB3253 #8FAB32 #32AB8A
split-complementary
#4E32AB #AB8A32 #53AB32
monochromatic
#23164C #38247C #4E32AB #6C4FCB #937ED9

Accessibility & contrast

On white

8.87
#4E32AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4E32AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32AB
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32AB#FFFFFF#000000##FFFFFF
##4E32AB1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#27526B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e32ab;
/* rgb */ color: rgb(78, 50, 171);
/* oklch */ color: oklch(42.8% 0.182 286.6);
Tailwind
colors: {
  custom: {
    50: '#896cc5',
    500: '#4e32ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e32ab;
$custom-light: #896cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32ab",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 253.884,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42809,
    "c": 0.18152,
    "h": 286.6
  },
  "luminance": 0.06841
}

Semantic roles & 50–950 ramp

primary
#4E32AB
secondary
#B1C277
accent
#DE4ABC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E32AB

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

Preview Lab → · Contrast checker → · Palette generator →

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