#4E32A7#4E32A7

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

Color values

HEX#4E32A7
RGBrgb(78, 50, 167)
HSLhsl(254, 54%, 43%)
HSVhsv(254, 70%, 65%)
CMYKcmyk(53.3%, 70.1%, 0%, 34.5%)
CIE-LABlab(31.09, 42.55, -58.69)
CIE-LCHlch(31.09, 72.49, 305.95°)
OKLaboklab(42.45% 0.0525 -0.1686)
OKLCHoklch(42.45% 0.177 287.3)
XYZxyz(11.2555, 6.6904, 37.2500)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32A7 #8BA732
analogous
#3250A7 #4E32A7 #8832A7
triadic
#4E32A7 #A74E32 #32A74E
tetradic
#4E32A7 #A73250 #8BA732 #32A788
square
#4E32A7 #A73250 #8BA732 #32A788
split-complementary
#4E32A7 #A78832 #50A732
monochromatic
#221649 #382478 #4E32A7 #6B4DCA #927CD8

Accessibility & contrast

On white

8.98
#4E32A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E32A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32A7
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32A7#FFFFFF#000000##FFFFFF
##4E32A71.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#2B5069
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e32a7;
/* rgb */ color: rgb(78, 50, 167);
/* oklch */ color: oklch(42.5% 0.177 287.3);
Tailwind
colors: {
  custom: {
    50: '#886cc2',
    500: '#4e32a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e32a7;
$custom-light: #886cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32a7",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 167
  },
  "hsl": {
    "h": 254.359,
    "s": 53.917,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42451,
    "c": 0.1766,
    "h": 287.3
  },
  "luminance": 0.06691
}

Semantic roles & 50–950 ramp

primary
#4E32A7
secondary
#AEC074
accent
#DD4BBA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E32A7

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

Preview Lab → · Contrast checker → · Palette generator →

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