#4E32AD#4E32AD

#4E32AD is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.184 H 286.2°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#4E32AD
RGBrgb(78, 50, 173)
HSLhsl(254, 55%, 44%)
HSVhsv(254, 71%, 68%)
CMYKcmyk(54.9%, 71.1%, 0%, 32.2%)
CIE-LABlab(31.62, 44.34, -61.42)
CIE-LCHlch(31.62, 75.76, 305.83°)
OKLaboklab(42.99% 0.0514 -0.1766)
OKLCHoklch(42.99% 0.184 286.2)
XYZxyz(11.8231, 6.9174, 40.2393)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32AD #91AD32
analogous
#3253AD #4E32AD #8B32AD
triadic
#4E32AD #AD4E32 #32AD4E
tetradic
#4E32AD #AD3253 #91AD32 #32AD8B
square
#4E32AD #AD3253 #91AD32 #32AD8B
split-complementary
#4E32AD #AD8B32 #53AD32
monochromatic
#23174E #39247E #4E32AD #6C50CC #947FDA

Accessibility & contrast

On white

8.81
#4E32AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E32AD
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32AD#FFFFFF#000000##FFFFFF
##4E32AD1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#25526C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e32ad;
/* rgb */ color: rgb(78, 50, 173);
/* oklch */ color: oklch(43.0% 0.184 286.2);
Tailwind
colors: {
  custom: {
    50: '#896cc6',
    500: '#4e32ad',
    950: '#000000',
  },
}
SCSS
$custom: #4e32ad;
$custom-light: #896cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32ad",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 173
  },
  "hsl": {
    "h": 253.659,
    "s": 55.157,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42989,
    "c": 0.18396,
    "h": 286.2
  },
  "luminance": 0.06918
}

Semantic roles & 50–950 ramp

primary
#4E32AD
secondary
#B2C378
accent
#DE49BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E32AD

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

Preview Lab → · Contrast checker → · Palette generator →

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