#4E32A6#4E32A6

#4E32A6 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.175 H 287.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#4E32A6
RGBrgb(78, 50, 166)
HSLhsl(254, 54%, 42%)
HSVhsv(254, 70%, 65%)
CMYKcmyk(53%, 69.9%, 0%, 34.9%)
CIE-LABlab(31.00, 42.26, -58.23)
CIE-LCHlch(31.00, 71.94, 305.97°)
OKLaboklab(42.36% 0.0527 -0.1672)
OKLCHoklch(42.36% 0.175 287.5)
XYZxyz(11.1634, 6.6535, 36.7650)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32A6 #8AA632
analogous
#3250A6 #4E32A6 #8832A6
triadic
#4E32A6 #A64E32 #32A64E
tetradic
#4E32A6 #A63250 #8AA632 #32A688
square
#4E32A6 #A63250 #8AA632 #32A688
split-complementary
#4E32A6 #A68832 #50A632
monochromatic
#221648 #382477 #4E32A6 #6A4CC9 #917BD7

Accessibility & contrast

On white

9.01
#4E32A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4E32A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32A6
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32A6#FFFFFF#000000##FFFFFF
##4E32A61.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#2C5068
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e32a6;
/* rgb */ color: rgb(78, 50, 166);
/* oklch */ color: oklch(42.4% 0.175 287.5);
Tailwind
colors: {
  custom: {
    50: '#886cc1',
    500: '#4e32a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e32a6;
$custom-light: #886cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32a6",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 166
  },
  "hsl": {
    "h": 254.483,
    "s": 53.704,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42362,
    "c": 0.17536,
    "h": 287.5
  },
  "luminance": 0.06654
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E32A6

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

Preview Lab → · Contrast checker → · Palette generator →

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