#4E1181#4E1181

#4E1181 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.168 H 302.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#4E1181
RGBrgb(78, 17, 129)
HSLhsl(273, 77%, 29%)
HSVhsv(273, 87%, 51%)
CMYKcmyk(39.5%, 86.8%, 0%, 49.4%)
CIE-LABlab(22.32, 47.39, -49.62)
CIE-LCHlch(22.32, 68.61, 313.68°)
OKLaboklab(35.23% 0.0905 -0.1418)
OKLCHoklch(35.23% 0.168 302.5)
XYZxyz(7.3038, 3.6056, 21.0758)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1181 #448111
analogous
#161181 #4E1181 #81117C
triadic
#4E1181 #814E11 #11814E
tetradic
#4E1181 #811611 #448111 #117C81
square
#4E1181 #811611 #448111 #117C81
split-complementary
#4E1181 #7C8111 #118116
monochromatic
#10041B #2D0A4B #4E1181 #6F18B7 #8E2AE3

Accessibility & contrast

On white

12.20
#4E1181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E1181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1181
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1181#FFFFFF#000000##FFFFFF
##4E11811.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#43324B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1181;
/* rgb */ color: rgb(78, 17, 129);
/* oklch */ color: oklch(35.2% 0.168 302.5);
Tailwind
colors: {
  custom: {
    50: '#8659a7',
    500: '#4e1181',
    950: '#000000',
  },
}
SCSS
$custom: #4e1181;
$custom-light: #8659a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1181",
  "rgb": {
    "r": 78,
    "g": 17,
    "b": 129
  },
  "hsl": {
    "h": 272.679,
    "s": 76.712,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35228,
    "c": 0.16817,
    "h": 302.5
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#4E1181
secondary
#71B737
accent
#F3358B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1181

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

Preview Lab → · Contrast checker → · Palette generator →

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