#4E32AA#4E32AA

#4E32AA is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.180 H 286.8°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#4E32AA
RGBrgb(78, 50, 170)
HSLhsl(254, 55%, 43%)
HSVhsv(254, 71%, 67%)
CMYKcmyk(54.1%, 70.6%, 0%, 33.3%)
CIE-LABlab(31.35, 43.45, -60.06)
CIE-LCHlch(31.35, 74.13, 305.88°)
OKLaboklab(42.72% 0.052 -0.1726)
OKLCHoklch(42.72% 0.18 286.8)
XYZxyz(11.5360, 6.8026, 38.7276)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32AA #8EAA32
analogous
#3252AA #4E32AA #8A32AA
triadic
#4E32AA #AA4E32 #32AA4E
tetradic
#4E32AA #AA3252 #8EAA32 #32AA8A
square
#4E32AA #AA3252 #8EAA32 #32AA8A
split-complementary
#4E32AA #AA8A32 #52AA32
monochromatic
#23164B #38247B #4E32AA #6B4ECB #937DD9

Accessibility & contrast

On white

8.90
#4E32AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4E32AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32AA
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32AA#FFFFFF#000000##FFFFFF
##4E32AA1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#28516A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e32aa;
/* rgb */ color: rgb(78, 50, 170);
/* oklch */ color: oklch(42.7% 0.180 286.8);
Tailwind
colors: {
  custom: {
    50: '#896cc4',
    500: '#4e32aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e32aa;
$custom-light: #896cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32aa",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 170
  },
  "hsl": {
    "h": 254,
    "s": 54.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42719,
    "c": 0.1803,
    "h": 286.8
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#4E32AA
secondary
#B0C276
accent
#DE4ABB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E32AA

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

Preview Lab → · Contrast checker → · Palette generator →

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