#4E32A9#4E32A9

#4E32A9 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.179 H 286.9°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#4E32A9
RGBrgb(78, 50, 169)
HSLhsl(254, 54%, 43%)
HSVhsv(254, 70%, 66%)
CMYKcmyk(53.8%, 70.4%, 0%, 33.7%)
CIE-LABlab(31.27, 43.15, -59.60)
CIE-LCHlch(31.27, 73.58, 305.90°)
OKLaboklab(42.63% 0.0522 -0.1713)
OKLCHoklch(42.63% 0.179 286.9)
XYZxyz(11.4418, 6.7649, 38.2313)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32A9 #8DA932
analogous
#3251A9 #4E32A9 #8A32A9
triadic
#4E32A9 #A94E32 #32A94E
tetradic
#4E32A9 #A93251 #8DA932 #32A98A
square
#4E32A9 #A93251 #8DA932 #32A98A
split-complementary
#4E32A9 #A98A32 #51A932
monochromatic
#22164B #38247A #4E32A9 #6B4ECB #927DD9

Accessibility & contrast

On white

8.92
#4E32A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E32A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32A9
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32A9#FFFFFF#000000##FFFFFF
##4E32A91.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#29516A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e32a9;
/* rgb */ color: rgb(78, 50, 169);
/* oklch */ color: oklch(42.6% 0.179 286.9);
Tailwind
colors: {
  custom: {
    50: '#896cc4',
    500: '#4e32a9',
    950: '#000000',
  },
}
SCSS
$custom: #4e32a9;
$custom-light: #896cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32a9",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 169
  },
  "hsl": {
    "h": 254.118,
    "s": 54.338,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42629,
    "c": 0.17907,
    "h": 286.9
  },
  "luminance": 0.06765
}

Semantic roles & 50–950 ramp

primary
#4E32A9
secondary
#AFC176
accent
#DE4ABB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E32A9

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

Preview Lab → · Contrast checker → · Palette generator →

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