#4E1880#4E1880

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

Color values

HEX#4E1880
RGBrgb(78, 24, 128)
HSLhsl(271, 68%, 30%)
HSVhsv(271, 81%, 50%)
CMYKcmyk(39.1%, 81.3%, 0%, 49.8%)
CIE-LABlab(23.11, 44.59, -47.70)
CIE-LCHlch(23.11, 65.30, 313.07°)
OKLaboklab(35.74% 0.0855 -0.1362)
OKLCHoklch(35.74% 0.161 302.1)
XYZxyz(7.3639, 3.8315, 20.7695)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1880 #4A8018
analogous
#1A1880 #4E1880 #80187E
triadic
#4E1880 #804E18 #18804E
tetradic
#4E1880 #801A18 #4A8018 #187E80
square
#4E1880 #801A18 #4A8018 #187E80
split-complementary
#4E1880 #7E8018 #18801A
monochromatic
#10051A #2F0E4C #4E1880 #6D22B4 #8C39DA

Accessibility & contrast

On white

11.89
#4E1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1880
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1880#FFFFFF#000000##FFFFFF
##4E18801.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1880;
/* rgb */ color: rgb(78, 24, 128);
/* oklch */ color: oklch(35.7% 0.161 302.1);
Tailwind
colors: {
  custom: {
    50: '#855ca6',
    500: '#4e1880',
    950: '#000000',
  },
}
SCSS
$custom: #4e1880;
$custom-light: #855ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1880",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 271.154,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35744,
    "c": 0.16081,
    "h": 302.1
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

primary
#4E1880
secondary
#78B440
accent
#EB3D91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1880

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

Preview Lab → · Contrast checker → · Palette generator →

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