#4E32B4#4E32B4

#4E32B4 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.192 H 285.1°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4E32B4
RGBrgb(78, 50, 180)
HSLhsl(253, 57%, 45%)
HSVhsv(253, 72%, 71%)
CMYKcmyk(56.7%, 72.2%, 0%, 29.4%)
CIE-LABlab(32.25, 46.43, -64.57)
CIE-LCHlch(32.25, 79.53, 305.72°)
OKLaboklab(43.63% 0.05 -0.1858)
OKLCHoklch(43.63% 0.192 285.1)
XYZxyz(12.5182, 7.1955, 43.9004)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32B4 #98B432
analogous
#3257B4 #4E32B4 #8F32B4
triadic
#4E32B4 #B44E32 #32B44E
tetradic
#4E32B4 #B43257 #98B432 #32B48F
square
#4E32B4 #B43257 #98B432 #32B48F
split-complementary
#4E32B4 #B48F32 #57B432
monochromatic
#241754 #392584 #4E32B4 #6E54CF #9784DD

Accessibility & contrast

On white

8.61
#4E32B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4E32B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32B4
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32B4#FFFFFF#000000##FFFFFF
##4E32B41.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#1C5570
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e32b4;
/* rgb */ color: rgb(78, 50, 180);
/* oklch */ color: oklch(43.6% 0.192 285.1);
Tailwind
colors: {
  custom: {
    50: '#8b6dcc',
    500: '#4e32b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e32b4;
$custom-light: #8b6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32b4",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 180
  },
  "hsl": {
    "h": 252.923,
    "s": 56.522,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4363,
    "c": 0.19244,
    "h": 285.1
  },
  "luminance": 0.07196
}

Semantic roles & 50–950 ramp

primary
#4E32B4
secondary
#B6C67C
accent
#E048BF
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E32B4

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

Preview Lab → · Contrast checker → · Palette generator →

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