#4E2A76#4E2A76

#4E2A76 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.2% C 0.126 H 302.5°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4E2A76
RGBrgb(78, 42, 118)
HSLhsl(268, 48%, 31%)
HSVhsv(268, 64%, 46%)
CMYKcmyk(33.9%, 64.4%, 0%, 53.7%)
CIE-LABlab(25.51, 33.00, -37.45)
CIE-LCHlch(25.51, 49.92, 311.39°)
OKLaboklab(37.21% 0.0676 -0.1062)
OKLCHoklch(37.21% 0.126 302.5)
XYZxyz(7.2391, 4.5836, 17.6394)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A76 #52762A
analogous
#2A2C76 #4E2A76 #742A76
triadic
#4E2A76 #764E2A #2A764E
tetradic
#4E2A76 #762A2C #52762A #2A7674
square
#4E2A76 #762A2C #52762A #2A7674
split-complementary
#4E2A76 #76742A #2C762A
monochromatic
#120A1C #301A49 #4E2A76 #6C3AA3 #8A57C3

Accessibility & contrast

On white

10.96
#4E2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E2A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A76
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A76#FFFFFF#000000##FFFFFF
##4E2A761.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#133C74
Tritanopia (blue-blind)
#463A4C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2a76;
/* rgb */ color: rgb(78, 42, 118);
/* oklch */ color: oklch(37.2% 0.126 302.5);
Tailwind
colors: {
  custom: {
    50: '#83669e',
    500: '#4e2a76',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a76;
$custom-light: #83669e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a76",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 268.421,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37208,
    "c": 0.12589,
    "h": 302.5
  },
  "luminance": 0.04584
}

Semantic roles & 50–950 ramp

primary
#4E2A76
secondary
#80A854
accent
#D75197
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2A76

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

Preview Lab → · Contrast checker → · Palette generator →

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