#4E32C1#4E32C1

#4E32C1 is a dark, highly saturated violet. Relative luminance 0.078; OKLCH L 44.9% C 0.208 H 283.1°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#4E32C1
RGBrgb(78, 50, 193)
HSLhsl(252, 59%, 48%)
HSVhsv(252, 74%, 76%)
CMYKcmyk(59.6%, 74.1%, 0%, 24.3%)
CIE-LABlab(33.46, 50.28, -70.26)
CIE-LCHlch(33.46, 86.40, 305.59°)
OKLaboklab(44.85% 0.0471 -0.2025)
OKLCHoklch(44.85% 0.208 283.1)
XYZxyz(13.9051, 7.7502, 51.2049)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E32C1 #A5C132
analogous
#325EC1 #4E32C1 #9532C1
triadic
#4E32C1 #C14E32 #32C14E
tetradic
#4E32C1 #C1325E #A5C132 #32C195
square
#4E32C1 #C1325E #A5C132 #32C195
split-complementary
#4E32C1 #C19532 #5EC132
monochromatic
#271960 #3A2590 #4E32C1 #735CD5 #9D8CE1

Accessibility & contrast

On white

8.23
#4E32C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4E32C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E32C1
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E32C1#FFFFFF#000000##FFFFFF
##4E32C11.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C5
Deuteranopia (green-blind)
#004ABE
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e32c1;
/* rgb */ color: rgb(78, 50, 193);
/* oklch */ color: oklch(44.9% 0.208 283.1);
Tailwind
colors: {
  custom: {
    50: '#8d6dd5',
    500: '#4e32c1',
    950: '#000000',
  },
}
SCSS
$custom: #4e32c1;
$custom-light: #8d6dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e32c1",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 193
  },
  "hsl": {
    "h": 251.748,
    "s": 58.848,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44853,
    "c": 0.2079,
    "h": 283.1
  },
  "luminance": 0.07751
}

Semantic roles & 50–950 ramp

primary
#4E32C1
secondary
#BDCB83
accent
#E246C3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4E32C1

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

Preview Lab → · Contrast checker → · Palette generator →

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