#4E1481#4E1481

#4E1481 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.166 H 302.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#4E1481
RGBrgb(78, 20, 129)
HSLhsl(272, 73%, 29%)
HSVhsv(272, 84%, 51%)
CMYKcmyk(39.5%, 84.5%, 0%, 49.4%)
CIE-LABlab(22.67, 46.37, -49.05)
CIE-LCHlch(22.67, 67.50, 313.39°)
OKLaboklab(35.47% 0.0883 -0.1401)
OKLCHoklch(35.47% 0.166 302.2)
XYZxyz(7.3535, 3.7050, 21.0923)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1481 #478114
analogous
#181481 #4E1481 #81147E
triadic
#4E1481 #814E14 #14814E
tetradic
#4E1481 #811814 #478114 #147E81
square
#4E1481 #811814 #478114 #147E81
split-complementary
#4E1481 #7E8114 #148118
monochromatic
#10041A #2E0C4C #4E1481 #6E1CB6 #8D30DF

Accessibility & contrast

On white

12.06
#4E1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E1481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1481
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1481#FFFFFF#000000##FFFFFF
##4E14811.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1481;
/* rgb */ color: rgb(78, 20, 129);
/* oklch */ color: oklch(35.5% 0.166 302.2);
Tailwind
colors: {
  custom: {
    50: '#855aa6',
    500: '#4e1481',
    950: '#000000',
  },
}
SCSS
$custom: #4e1481;
$custom-light: #855aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1481",
  "rgb": {
    "r": 78,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 271.927,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3547,
    "c": 0.16564,
    "h": 302.2
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#4E1481
secondary
#74B63B
accent
#F0388E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1481

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

Preview Lab → · Contrast checker → · Palette generator →

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