#4E1780#4E1780

#4E1780 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.162 H 302.2°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#4E1780
RGBrgb(78, 23, 128)
HSLhsl(271, 70%, 30%)
HSVhsv(271, 82%, 50%)
CMYKcmyk(39.1%, 82%, 0%, 49.8%)
CIE-LABlab(22.97, 44.99, -47.93)
CIE-LCHlch(22.97, 65.74, 313.19°)
OKLaboklab(35.65% 0.0863 -0.1369)
OKLCHoklch(35.65% 0.162 302.2)
XYZxyz(7.3436, 3.7910, 20.7627)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1780 #498017
analogous
#1A1780 #4E1780 #80177D
triadic
#4E1780 #804E17 #17804E
tetradic
#4E1780 #801A17 #498017 #177D80
square
#4E1780 #801A17 #498017 #177D80
split-complementary
#4E1780 #7D8017 #17801A
monochromatic
#10051A #2E0E4C #4E1780 #6E20B4 #8D36DB

Accessibility & contrast

On white

11.94
#4E1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1780
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1780#FFFFFF#000000##FFFFFF
##4E17801.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1780;
/* rgb */ color: rgb(78, 23, 128);
/* oklch */ color: oklch(35.6% 0.162 302.2);
Tailwind
colors: {
  custom: {
    50: '#855ca6',
    500: '#4e1780',
    950: '#000000',
  },
}
SCSS
$custom: #4e1780;
$custom-light: #855ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1780",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 271.429,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35648,
    "c": 0.1618,
    "h": 302.2
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#4E1780
secondary
#77B43E
accent
#EC3B90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1780

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

Preview Lab → · Contrast checker → · Palette generator →

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