#4E1381#4E1381

#4E1381 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.167 H 302.3°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#4E1381
RGBrgb(78, 19, 129)
HSLhsl(272, 74%, 29%)
HSVhsv(272, 85%, 51%)
CMYKcmyk(39.5%, 85.3%, 0%, 49.4%)
CIE-LABlab(22.55, 46.72, -49.25)
CIE-LCHlch(22.55, 67.88, 313.49°)
OKLaboklab(35.39% 0.0891 -0.1407)
OKLCHoklch(35.39% 0.167 302.3)
XYZxyz(7.3362, 3.6704, 21.0866)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1381 #468113
analogous
#171381 #4E1381 #81137D
triadic
#4E1381 #814E13 #13814E
tetradic
#4E1381 #811713 #468113 #137D81
square
#4E1381 #811713 #468113 #137D81
split-complementary
#4E1381 #7D8113 #138117
monochromatic
#10041B #2E0B4C #4E1381 #6E1BB6 #8E2EE0

Accessibility & contrast

On white

12.11
#4E1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1381
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1381#FFFFFF#000000##FFFFFF
##4E13811.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1381;
/* rgb */ color: rgb(78, 19, 129);
/* oklch */ color: oklch(35.4% 0.167 302.3);
Tailwind
colors: {
  custom: {
    50: '#855aa6',
    500: '#4e1381',
    950: '#000000',
  },
}
SCSS
$custom: #4e1381;
$custom-light: #855aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1381",
  "rgb": {
    "r": 78,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 272.182,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35386,
    "c": 0.16651,
    "h": 302.3
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#4E1381
secondary
#73B63A
accent
#F1378D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1381

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

Preview Lab → · Contrast checker → · Palette generator →

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