#4E32A1#4E32A1

#4E32A1 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.169 H 288.5°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4E32A1
RGBrgb(78, 50, 161)
HSLhsl(255, 53%, 41%)
HSVhsv(255, 69%, 63%)
CMYKcmyk(51.6%, 68.9%, 0%, 36.9%)
CIE-LABlab(30.58, 40.77, -55.91)
CIE-LCHlch(30.58, 69.19, 306.10°)
OKLaboklab(41.92% 0.0536 -0.1604)
OKLCHoklch(41.92% 0.169 288.5)
XYZxyz(10.7136, 6.4736, 34.3963)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32A1 #85A132
analogous
#324EA1 #4E32A1 #8632A1
triadic
#4E32A1 #A14E32 #32A14E
tetradic
#4E32A1 #A1324E #85A132 #32A186
square
#4E32A1 #A1324E #85A132 #32A186
split-complementary
#4E32A1 #A18632 #4EA132
monochromatic
#211544 #372372 #4E32A1 #694AC7 #9078D5

Accessibility & contrast

On white

9.15
#4E32A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E32A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32A1
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32A1#FFFFFF#000000##FFFFFF
##4E32A11.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#304E65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e32a1;
/* rgb */ color: rgb(78, 50, 161);
/* oklch */ color: oklch(41.9% 0.169 288.5);
Tailwind
colors: {
  custom: {
    50: '#886cbe',
    500: '#4e32a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e32a1;
$custom-light: #886cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32a1",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 161
  },
  "hsl": {
    "h": 255.135,
    "s": 52.607,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41924,
    "c": 0.16915,
    "h": 288.5
  },
  "luminance": 0.06474
}

Semantic roles & 50–950 ramp

primary
#4E32A1
secondary
#AABE71
accent
#DC4CB8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E32A1

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

Preview Lab → · Contrast checker → · Palette generator →

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