#4E32A8#4E32A8

#4E32A8 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.178 H 287.1°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#4E32A8
RGBrgb(78, 50, 168)
HSLhsl(254, 54%, 43%)
HSVhsv(254, 70%, 66%)
CMYKcmyk(53.6%, 70.2%, 0%, 34.1%)
CIE-LABlab(31.18, 42.85, -59.15)
CIE-LCHlch(31.18, 73.04, 305.92°)
OKLaboklab(42.54% 0.0524 -0.1699)
OKLCHoklch(42.54% 0.178 287.1)
XYZxyz(11.3483, 6.7275, 37.7388)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32A8 #8CA832
analogous
#3251A8 #4E32A8 #8932A8
triadic
#4E32A8 #A84E32 #32A84E
tetradic
#4E32A8 #A83251 #8CA832 #32A889
square
#4E32A8 #A83251 #8CA832 #32A889
split-complementary
#4E32A8 #A88932 #51A832
monochromatic
#22164A #382479 #4E32A8 #6B4DCA #927CD8

Accessibility & contrast

On white

8.95
#4E32A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E32A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32A8
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32A8#FFFFFF#000000##FFFFFF
##4E32A81.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#2A5169
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e32a8;
/* rgb */ color: rgb(78, 50, 168);
/* oklch */ color: oklch(42.5% 0.178 287.1);
Tailwind
colors: {
  custom: {
    50: '#896cc3',
    500: '#4e32a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e32a8;
$custom-light: #896cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32a8",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 168
  },
  "hsl": {
    "h": 254.237,
    "s": 54.128,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4254,
    "c": 0.17783,
    "h": 287.1
  },
  "luminance": 0.06728
}

Semantic roles & 50–950 ramp

primary
#4E32A8
secondary
#AFC175
accent
#DD4ABB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E32A8

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

Preview Lab → · Contrast checker → · Palette generator →

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