#4E32B6#4E32B6

#4E32B6 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.195 H 284.7°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4E32B6
RGBrgb(78, 50, 182)
HSLhsl(253, 57%, 45%)
HSVhsv(253, 73%, 71%)
CMYKcmyk(57.1%, 72.5%, 0%, 28.6%)
CIE-LABlab(32.43, 47.02, -65.45)
CIE-LCHlch(32.43, 80.59, 305.69°)
OKLaboklab(43.82% 0.0495 -0.1884)
OKLCHoklch(43.82% 0.195 284.7)
XYZxyz(12.7234, 7.2775, 44.9812)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32B6 #9AB632
analogous
#3258B6 #4E32B6 #9032B6
triadic
#4E32B6 #B64E32 #32B64E
tetradic
#4E32B6 #B63258 #9AB632 #32B690
square
#4E32B6 #B63258 #9AB632 #32B690
split-complementary
#4E32B6 #B69032 #58B632
monochromatic
#251856 #392586 #4E32B6 #6F55D0 #9885DD

Accessibility & contrast

On white

8.55
#4E32B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4E32B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32B6
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32B6#FFFFFF#000000##FFFFFF
##4E32B61.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#195671
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e32b6;
/* rgb */ color: rgb(78, 50, 182);
/* oklch */ color: oklch(43.8% 0.195 284.7);
Tailwind
colors: {
  custom: {
    50: '#8b6dcd',
    500: '#4e32b6',
    950: '#000000',
  },
}
SCSS
$custom: #4e32b6;
$custom-light: #8b6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32b6",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 182
  },
  "hsl": {
    "h": 252.727,
    "s": 56.897,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43815,
    "c": 0.19485,
    "h": 284.7
  },
  "luminance": 0.07278
}

Semantic roles & 50–950 ramp

primary
#4E32B6
secondary
#B7C77D
accent
#E048C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E32B6

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

Preview Lab → · Contrast checker → · Palette generator →

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