#4E1B80#4E1B80

#4E1B80 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.158 H 301.7°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#4E1B80
RGBrgb(78, 27, 128)
HSLhsl(270, 65%, 30%)
HSVhsv(270, 79%, 50%)
CMYKcmyk(39.1%, 78.9%, 0%, 49.8%)
CIE-LABlab(23.55, 43.33, -46.99)
CIE-LCHlch(23.55, 63.91, 312.68°)
OKLaboklab(36.05% 0.0828 -0.1341)
OKLCHoklch(36.05% 0.158 301.7)
XYZxyz(7.4292, 3.9620, 20.7912)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B80 #4D801B
analogous
#1C1B80 #4E1B80 #801B7F
triadic
#4E1B80 #804E1B #1B804E
tetradic
#4E1B80 #801C1B #4D801B #1B7F80
square
#4E1B80 #801C1B #4D801B #1B7F80
split-complementary
#4E1B80 #7F801B #1B801C
monochromatic
#10061B #2F104D #4E1B80 #6D26B3 #8B3FD6

Accessibility & contrast

On white

11.72
#4E1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E1B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B80
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B80#FFFFFF#000000##FFFFFF
##4E1B801.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#43354D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1b80;
/* rgb */ color: rgb(78, 27, 128);
/* oklch */ color: oklch(36.1% 0.158 301.7);
Tailwind
colors: {
  custom: {
    50: '#855da6',
    500: '#4e1b80',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b80;
$custom-light: #855da6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b80",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 270.297,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36052,
    "c": 0.15764,
    "h": 301.7
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#4E1B80
secondary
#7BB443
accent
#E84093
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #4E1B80

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

Preview Lab → · Contrast checker → · Palette generator →

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