#4E1B81#4E1B81

#4E1B81 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.159 H 301.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#4E1B81
RGBrgb(78, 27, 129)
HSLhsl(270, 65%, 31%)
HSVhsv(270, 79%, 51%)
CMYKcmyk(39.5%, 79.1%, 0%, 49.4%)
CIE-LABlab(23.63, 43.58, -47.48)
CIE-LCHlch(23.63, 64.45, 312.55°)
OKLaboklab(36.14% 0.0826 -0.1356)
OKLCHoklch(36.14% 0.159 301.3)
XYZxyz(7.4953, 3.9885, 21.1396)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B81 #4E811B
analogous
#1B1B81 #4E1B81 #811B81
triadic
#4E1B81 #814E1B #1B814E
tetradic
#4E1B81 #811B1B #4E811B #1B8181
square
#4E1B81 #811B1B #4E811B #1B8181
split-complementary
#4E1B81 #81811B #1B811B
monochromatic
#11061C #2F104E #4E1B81 #6D26B4 #8B3FD7

Accessibility & contrast

On white

11.68
#4E1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B81
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B81#FFFFFF#000000##FFFFFF
##4E1B811.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#43364D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1b81;
/* rgb */ color: rgb(78, 27, 129);
/* oklch */ color: oklch(36.1% 0.159 301.3);
Tailwind
colors: {
  custom: {
    50: '#855ea6',
    500: '#4e1b81',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b81;
$custom-light: #855ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b81",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 270,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3614,
    "c": 0.15873,
    "h": 301.3
  },
  "luminance": 0.03989
}

Semantic roles & 50–950 ramp

primary
#4E1B81
secondary
#7CB543
accent
#E83F94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #4E1B81

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

Preview Lab → · Contrast checker → · Palette generator →

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