#4E32B1#4E32B1

#4E32B1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.189 H 285.5°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#4E32B1
RGBrgb(78, 50, 177)
HSLhsl(253, 56%, 45%)
HSVhsv(253, 72%, 69%)
CMYKcmyk(55.9%, 71.8%, 0%, 30.6%)
CIE-LABlab(31.98, 45.54, -63.23)
CIE-LCHlch(31.98, 77.92, 305.76°)
OKLaboklab(43.35% 0.0506 -0.1819)
OKLCHoklch(43.35% 0.189 285.5)
XYZxyz(12.2159, 7.0745, 42.3083)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32B1 #95B132
analogous
#3256B1 #4E32B1 #8D32B1
triadic
#4E32B1 #B14E32 #32B14E
tetradic
#4E32B1 #B13256 #95B132 #32B18D
square
#4E32B1 #B13256 #95B132 #32B18D
split-complementary
#4E32B1 #B18D32 #56B132
monochromatic
#241752 #392581 #4E32B1 #6D52CE #9682DC

Accessibility & contrast

On white

8.70
#4E32B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4E32B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32B1
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32B1#FFFFFF#000000##FFFFFF
##4E32B11.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#20546E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e32b1;
/* rgb */ color: rgb(78, 50, 177);
/* oklch */ color: oklch(43.4% 0.189 285.5);
Tailwind
colors: {
  custom: {
    50: '#8a6dc9',
    500: '#4e32b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e32b1;
$custom-light: #8a6dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32b1",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 253.228,
    "s": 55.947,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43354,
    "c": 0.18883,
    "h": 285.5
  },
  "luminance": 0.07075
}

Semantic roles & 50–950 ramp

primary
#4E32B1
secondary
#B4C57A
accent
#DF49BE
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E32B1

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

Preview Lab → · Contrast checker → · Palette generator →

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