#4E1581#4E1581

#4E1581 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.165 H 302.1°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#4E1581
RGBrgb(78, 21, 129)
HSLhsl(272, 72%, 29%)
HSVhsv(272, 84%, 51%)
CMYKcmyk(39.5%, 83.7%, 0%, 49.4%)
CIE-LABlab(22.80, 46.00, -48.84)
CIE-LCHlch(22.80, 67.10, 313.28°)
OKLaboklab(35.56% 0.0876 -0.1395)
OKLCHoklch(35.56% 0.165 302.1)
XYZxyz(7.3715, 3.7410, 21.0983)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1581 #488115
analogous
#181581 #4E1581 #81157E
triadic
#4E1581 #814E15 #15814E
tetradic
#4E1581 #811815 #488115 #157E81
square
#4E1581 #811815 #488115 #157E81
split-complementary
#4E1581 #7E8115 #158118
monochromatic
#10041A #2E0C4C #4E1581 #6E1EB6 #8D33DE

Accessibility & contrast

On white

12.01
#4E1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1581
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1581#FFFFFF#000000##FFFFFF
##4E15811.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#43334C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1581;
/* rgb */ color: rgb(78, 21, 129);
/* oklch */ color: oklch(35.6% 0.165 302.1);
Tailwind
colors: {
  custom: {
    50: '#855ba6',
    500: '#4e1581',
    950: '#000000',
  },
}
SCSS
$custom: #4e1581;
$custom-light: #855ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1581",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 271.667,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35556,
    "c": 0.16474,
    "h": 302.1
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#4E1581
secondary
#76B63C
accent
#EF398F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1581

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

Preview Lab → · Contrast checker → · Palette generator →

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