#4E1B79#4E1B79

#4E1B79 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.150 H 304.3°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#4E1B79
RGBrgb(78, 27, 121)
HSLhsl(273, 64%, 29%)
HSVhsv(273, 78%, 47%)
CMYKcmyk(35.5%, 77.7%, 0%, 52.5%)
CIE-LABlab(22.94, 41.56, -43.52)
CIE-LCHlch(22.94, 60.18, 313.68°)
OKLaboklab(35.44% 0.0846 -0.1239)
OKLCHoklch(35.44% 0.15 304.3)
XYZxyz(6.9842, 3.7841, 18.4479)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B79 #46791B
analogous
#1F1B79 #4E1B79 #791B75
triadic
#4E1B79 #794E1B #1B794E
tetradic
#4E1B79 #791F1B #46791B #1B7579
square
#4E1B79 #791F1B #46791B #1B7579
split-complementary
#4E1B79 #75791B #1B791F
monochromatic
#100619 #2E1047 #4E1B79 #6E26AB #8E3BD3

Accessibility & contrast

On white

11.95
#4E1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B79
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B79#FFFFFF#000000##FFFFFF
##4E1B791.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#463249
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1b79;
/* rgb */ color: rgb(78, 27, 121);
/* oklch */ color: oklch(35.4% 0.150 304.3);
Tailwind
colors: {
  custom: {
    50: '#845da0',
    500: '#4e1b79',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b79;
$custom-light: #845da0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b79",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 272.553,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35442,
    "c": 0.15005,
    "h": 304.3
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#4E1B79
secondary
#73AD43
accent
#E7418D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4E1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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