#4E1580#4E1580

#4E1580 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.164 H 302.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#4E1580
RGBrgb(78, 21, 128)
HSLhsl(272, 72%, 29%)
HSVhsv(272, 84%, 50%)
CMYKcmyk(39.1%, 83.6%, 0%, 49.8%)
CIE-LABlab(22.70, 45.76, -48.36)
CIE-LCHlch(22.70, 66.58, 313.42°)
OKLaboklab(35.47% 0.0879 -0.1381)
OKLCHoklch(35.47% 0.164 302.5)
XYZxyz(7.3054, 3.7145, 20.7500)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1580 #478015
analogous
#191580 #4E1580 #80157D
triadic
#4E1580 #804E15 #15804E
tetradic
#4E1580 #801915 #478015 #157D80
square
#4E1580 #801915 #478015 #157D80
split-complementary
#4E1580 #7D8015 #158019
monochromatic
#10041A #2E0C4B #4E1580 #6E1EB5 #8D32DD

Accessibility & contrast

On white

12.05
#4E1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1580
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1580#FFFFFF#000000##FFFFFF
##4E15801.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#43334B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1580;
/* rgb */ color: rgb(78, 21, 128);
/* oklch */ color: oklch(35.5% 0.164 302.5);
Tailwind
colors: {
  custom: {
    50: '#855ba6',
    500: '#4e1580',
    950: '#000000',
  },
}
SCSS
$custom: #4e1580;
$custom-light: #855ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1580",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 271.963,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35465,
    "c": 0.16371,
    "h": 302.5
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#4E1580
secondary
#74B53C
accent
#EF398E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1580

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

Preview Lab → · Contrast checker → · Palette generator →

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