#4E1C81#4E1C81

#4E1C81 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.158 H 301.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4E1C81
RGBrgb(78, 28, 129)
HSLhsl(270, 64%, 31%)
HSVhsv(270, 78%, 51%)
CMYKcmyk(39.5%, 78.3%, 0%, 49.4%)
CIE-LABlab(23.79, 43.14, -47.22)
CIE-LCHlch(23.79, 63.96, 312.41°)
OKLaboklab(36.25% 0.0817 -0.1348)
OKLCHoklch(36.25% 0.158 301.2)
XYZxyz(7.5186, 4.0351, 21.1474)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1C81 #4F811C
analogous
#1C1C81 #4E1C81 #801C81
triadic
#4E1C81 #814E1C #1C814E
tetradic
#4E1C81 #811C1C #4F811C #1C8180
square
#4E1C81 #811C1C #4F811C #1C8180
split-complementary
#4E1C81 #81801C #1C811C
monochromatic
#11061C #30114F #4E1C81 #6C27B3 #8B42D6

Accessibility & contrast

On white

11.62
#4E1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1C81
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1C81#FFFFFF#000000##FFFFFF
##4E1C811.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1c81;
/* rgb */ color: rgb(78, 28, 129);
/* oklch */ color: oklch(36.2% 0.158 301.2);
Tailwind
colors: {
  custom: {
    50: '#855ea6',
    500: '#4e1c81',
    950: '#000000',
  },
}
SCSS
$custom: #4e1c81;
$custom-light: #855ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1c81",
  "rgb": {
    "r": 78,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 269.703,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36248,
    "c": 0.15763,
    "h": 301.2
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#4E1C81
secondary
#7DB444
accent
#E74095
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #4E1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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