#4E1881#4E1881

#4E1881 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.162 H 301.8°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#4E1881
RGBrgb(78, 24, 129)
HSLhsl(271, 69%, 30%)
HSVhsv(271, 81%, 51%)
CMYKcmyk(39.5%, 81.4%, 0%, 49.4%)
CIE-LABlab(23.20, 44.84, -48.19)
CIE-LCHlch(23.20, 65.83, 312.94°)
OKLaboklab(35.84% 0.0852 -0.1376)
OKLCHoklch(35.84% 0.162 301.8)
XYZxyz(7.4300, 3.8579, 21.1178)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1881 #4B8118
analogous
#1A1881 #4E1881 #81187F
triadic
#4E1881 #814E18 #18814E
tetradic
#4E1881 #811A18 #4B8118 #187F81
square
#4E1881 #811A18 #4B8118 #187F81
split-complementary
#4E1881 #7F8118 #18811A
monochromatic
#10051A #2F0E4D #4E1881 #6D22B5 #8C39DA

Accessibility & contrast

On white

11.85
#4E1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1881
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1881#FFFFFF#000000##FFFFFF
##4E18811.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#43344D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1881;
/* rgb */ color: rgb(78, 24, 129);
/* oklch */ color: oklch(35.8% 0.162 301.8);
Tailwind
colors: {
  custom: {
    50: '#855ca6',
    500: '#4e1881',
    950: '#000000',
  },
}
SCSS
$custom: #4e1881;
$custom-light: #855ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1881",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 270.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.35835,
    "c": 0.16186,
    "h": 301.8
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#4E1881
secondary
#79B540
accent
#EB3C91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1881

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

Preview Lab → · Contrast checker → · Palette generator →

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