#4E32AC#4E32AC

#4E32AC is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.183 H 286.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#4E32AC
RGBrgb(78, 50, 172)
HSLhsl(254, 55%, 44%)
HSVhsv(254, 71%, 67%)
CMYKcmyk(54.7%, 70.9%, 0%, 32.5%)
CIE-LABlab(31.53, 44.05, -60.97)
CIE-LCHlch(31.53, 75.22, 305.84°)
OKLaboklab(42.9% 0.0516 -0.1753)
OKLCHoklch(42.9% 0.183 286.4)
XYZxyz(11.7267, 6.8788, 39.7316)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32AC #90AC32
analogous
#3253AC #4E32AC #8B32AC
triadic
#4E32AC #AC4E32 #32AC4E
tetradic
#4E32AC #AC3253 #90AC32 #32AC8B
square
#4E32AC #AC3253 #90AC32 #32AC8B
split-complementary
#4E32AC #AC8B32 #53AC32
monochromatic
#23164D #38247D #4E32AC #6C4FCC #947FDA

Accessibility & contrast

On white

8.84
#4E32AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4E32AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32AC
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32AC#FFFFFF#000000##FFFFFF
##4E32AC1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#26526B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e32ac;
/* rgb */ color: rgb(78, 50, 172);
/* oklch */ color: oklch(42.9% 0.183 286.4);
Tailwind
colors: {
  custom: {
    50: '#896cc6',
    500: '#4e32ac',
    950: '#000000',
  },
}
SCSS
$custom: #4e32ac;
$custom-light: #896cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32ac",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 172
  },
  "hsl": {
    "h": 253.77,
    "s": 54.955,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42899,
    "c": 0.18275,
    "h": 286.4
  },
  "luminance": 0.06879
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E32AC

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

Preview Lab → · Contrast checker → · Palette generator →

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