#4E32A5#4E32A5

#4E32A5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.174 H 287.7°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4E32A5
RGBrgb(78, 50, 165)
HSLhsl(255, 53%, 42%)
HSVhsv(255, 70%, 65%)
CMYKcmyk(52.7%, 69.7%, 0%, 35.3%)
CIE-LABlab(30.92, 41.96, -57.76)
CIE-LCHlch(30.92, 71.39, 305.99°)
OKLaboklab(42.27% 0.0529 -0.1659)
OKLCHoklch(42.27% 0.174 287.7)
XYZxyz(11.0720, 6.6170, 36.2838)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32A5 #89A532
analogous
#324FA5 #4E32A5 #8832A5
triadic
#4E32A5 #A54E32 #32A54E
tetradic
#4E32A5 #A5324F #89A532 #32A588
square
#4E32A5 #A5324F #89A532 #32A588
split-complementary
#4E32A5 #A58832 #4FA532
monochromatic
#221647 #382476 #4E32A5 #6A4CC9 #917BD7

Accessibility & contrast

On white

9.04
#4E32A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4E32A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32A5
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32A5#FFFFFF#000000##FFFFFF
##4E32A51.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#2D5067
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e32a5;
/* rgb */ color: rgb(78, 50, 165);
/* oklch */ color: oklch(42.3% 0.174 287.7);
Tailwind
colors: {
  custom: {
    50: '#886cc1',
    500: '#4e32a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e32a5;
$custom-light: #886cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32a5",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 165
  },
  "hsl": {
    "h": 254.609,
    "s": 53.488,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42274,
    "c": 0.17413,
    "h": 287.7
  },
  "luminance": 0.06618
}

Semantic roles & 50–950 ramp

primary
#4E32A5
secondary
#ADBF73
accent
#DD4BB9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E32A5

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

Preview Lab → · Contrast checker → · Palette generator →

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