#4E1781#4E1781

#4E1781 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.163 H 301.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4E1781
RGBrgb(78, 23, 129)
HSLhsl(271, 70%, 30%)
HSVhsv(271, 82%, 51%)
CMYKcmyk(39.5%, 82.2%, 0%, 49.4%)
CIE-LABlab(23.06, 45.24, -48.41)
CIE-LCHlch(23.06, 66.26, 313.06°)
OKLaboklab(35.74% 0.086 -0.1383)
OKLCHoklch(35.74% 0.163 301.9)
XYZxyz(7.4098, 3.8174, 21.1111)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1781 #4A8117
analogous
#191781 #4E1781 #81177F
triadic
#4E1781 #814E17 #17814E
tetradic
#4E1781 #811917 #4A8117 #177F81
square
#4E1781 #811917 #4A8117 #177F81
split-complementary
#4E1781 #7F8117 #178119
monochromatic
#10051A #2F0E4D #4E1781 #6D20B5 #8C37DB

Accessibility & contrast

On white

11.91
#4E1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4E1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1781
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1781#FFFFFF#000000##FFFFFF
##4E17811.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#43344C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1781;
/* rgb */ color: rgb(78, 23, 129);
/* oklch */ color: oklch(35.7% 0.163 301.9);
Tailwind
colors: {
  custom: {
    50: '#855ca6',
    500: '#4e1781',
    950: '#000000',
  },
}
SCSS
$custom: #4e1781;
$custom-light: #855ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1781",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 271.132,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.16286,
    "h": 301.9
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#4E1781
secondary
#78B53E
accent
#ED3B91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1781

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

Preview Lab → · Contrast checker → · Palette generator →

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