#4E32C5#4E32C5

#4E32C5 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.213 H 282.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#4E32C5
RGBrgb(78, 50, 197)
HSLhsl(251, 60%, 48%)
HSVhsv(251, 75%, 77%)
CMYKcmyk(60.4%, 74.6%, 0%, 22.7%)
CIE-LABlab(33.84, 51.46, -71.98)
CIE-LCHlch(33.84, 88.48, 305.57°)
OKLaboklab(45.24% 0.0461 -0.2075)
OKLCHoklch(45.24% 0.213 282.5)
XYZxyz(14.3574, 7.9311, 53.5868)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32C5 #A9C532
analogous
#325FC5 #4E32C5 #9732C5
triadic
#4E32C5 #C54E32 #32C54E
tetradic
#4E32C5 #C5325F #A9C532 #32C597
square
#4E32C5 #C5325F #A9C532 #32C597
split-complementary
#4E32C5 #C59732 #5FC532
monochromatic
#271963 #3B2694 #4E32C5 #755ED6 #9F8FE3

Accessibility & contrast

On white

8.12
#4E32C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4E32C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32C5
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32C5#FFFFFF#000000##FFFFFF
##4E32C51.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C9
Deuteranopia (green-blind)
#004AC2
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e32c5;
/* rgb */ color: rgb(78, 50, 197);
/* oklch */ color: oklch(45.2% 0.213 282.5);
Tailwind
colors: {
  custom: {
    50: '#8d6dd8',
    500: '#4e32c5',
    950: '#000000',
  },
}
SCSS
$custom: #4e32c5;
$custom-light: #8d6dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32c5",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 197
  },
  "hsl": {
    "h": 251.429,
    "s": 59.514,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45238,
    "c": 0.21258,
    "h": 282.5
  },
  "luminance": 0.07932
}

Semantic roles & 50–950 ramp

primary
#4E32C5
secondary
#BFCD86
accent
#E345C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4E32C5

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

Preview Lab → · Contrast checker → · Palette generator →

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