#4E1E82#4E1E82

#4E1E82 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.156 H 300.5°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#4E1E82
RGBrgb(78, 30, 130)
HSLhsl(269, 63%, 31%)
HSVhsv(269, 77%, 51%)
CMYKcmyk(40%, 76.9%, 0%, 49%)
CIE-LABlab(24.19, 42.49, -47.19)
CIE-LCHlch(24.19, 63.50, 312.00°)
OKLaboklab(36.56% 0.0795 -0.1347)
OKLCHoklch(36.56% 0.156 300.5)
XYZxyz(7.6344, 4.1599, 21.5155)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E82 #52821E
analogous
#1E2082 #4E1E82 #801E82
triadic
#4E1E82 #824E1E #1E824E
tetradic
#4E1E82 #821E20 #52821E #1E8280
square
#4E1E82 #821E20 #52821E #1E8280
split-complementary
#4E1E82 #82801E #20821E
monochromatic
#12071F #301350 #4E1E82 #6C29B4 #8A46D4

Accessibility & contrast

On white

11.46
#4E1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4E1E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E82
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E82#FFFFFF#000000##FFFFFF
##4E1E821.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#42384E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1e82;
/* rgb */ color: rgb(78, 30, 130);
/* oklch */ color: oklch(36.6% 0.156 300.5);
Tailwind
colors: {
  custom: {
    50: '#855fa7',
    500: '#4e1e82',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e82;
$custom-light: #855fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e82",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 268.8,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36561,
    "c": 0.15646,
    "h": 300.5
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#4E1E82
secondary
#80B547
accent
#E64297
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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