#4E32B2#4E32B2

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

Color values

HEX#4E32B2
RGBrgb(78, 50, 178)
HSLhsl(253, 56%, 45%)
HSVhsv(253, 72%, 70%)
CMYKcmyk(56.2%, 71.9%, 0%, 30.2%)
CIE-LABlab(32.07, 45.83, -63.67)
CIE-LCHlch(32.07, 78.45, 305.75°)
OKLaboklab(43.45% 0.0504 -0.1832)
OKLCHoklch(43.45% 0.19 285.4)
XYZxyz(12.3159, 7.1145, 42.8351)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32B2 #96B232
analogous
#3256B2 #4E32B2 #8E32B2
triadic
#4E32B2 #B24E32 #32B24E
tetradic
#4E32B2 #B23256 #96B232 #32B28E
square
#4E32B2 #B23256 #96B232 #32B28E
split-complementary
#4E32B2 #B28E32 #56B232
monochromatic
#241752 #392582 #4E32B2 #6E53CF #9682DC

Accessibility & contrast

On white

8.67
#4E32B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4E32B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32B2
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32B2#FFFFFF#000000##FFFFFF
##4E32B21.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#1F546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e32b2;
/* rgb */ color: rgb(78, 50, 178);
/* oklch */ color: oklch(43.4% 0.190 285.4);
Tailwind
colors: {
  custom: {
    50: '#8a6dca',
    500: '#4e32b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e32b2;
$custom-light: #8a6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32b2",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 253.125,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43445,
    "c": 0.19004,
    "h": 285.4
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

primary
#4E32B2
secondary
#B5C57B
accent
#DF48BE
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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