#4E32A0#4E32A0

#4E32A0 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.168 H 288.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4E32A0
RGBrgb(78, 50, 160)
HSLhsl(255, 52%, 41%)
HSVhsv(255, 69%, 63%)
CMYKcmyk(51.2%, 68.8%, 0%, 37.3%)
CIE-LABlab(30.49, 40.47, -55.44)
CIE-LCHlch(30.49, 68.64, 306.13°)
OKLaboklab(41.84% 0.0537 -0.1591)
OKLCHoklch(41.84% 0.168 288.7)
XYZxyz(10.6258, 6.4385, 33.9338)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32A0 #84A032
analogous
#324DA0 #4E32A0 #8532A0
triadic
#4E32A0 #A04E32 #32A04E
tetradic
#4E32A0 #A0324D #84A032 #32A085
square
#4E32A0 #A0324D #84A032 #32A085
split-complementary
#4E32A0 #A08532 #4DA032
monochromatic
#211543 #372371 #4E32A0 #6949C6 #8F78D5

Accessibility & contrast

On white

9.18
#4E32A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E32A0
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32A0#FFFFFF#000000##FFFFFF
##4E32A01.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#314E65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e32a0;
/* rgb */ color: rgb(78, 50, 160);
/* oklch */ color: oklch(41.8% 0.168 288.7);
Tailwind
colors: {
  custom: {
    50: '#876cbd',
    500: '#4e32a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e32a0;
$custom-light: #876cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32a0",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 160
  },
  "hsl": {
    "h": 255.273,
    "s": 52.381,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41837,
    "c": 0.1679,
    "h": 288.7
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#4E32A0
secondary
#AABD71
accent
#DC4CB7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E32A0

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

Preview Lab → · Contrast checker → · Palette generator →

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