#4E1B76#4E1B76

#4E1B76 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.147 H 305.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#4E1B76
RGBrgb(78, 27, 118)
HSLhsl(274, 63%, 28%)
HSVhsv(274, 77%, 46%)
CMYKcmyk(33.9%, 77.1%, 0%, 53.7%)
CIE-LABlab(22.69, 40.81, -42.01)
CIE-LCHlch(22.69, 58.57, 314.17°)
OKLaboklab(35.19% 0.0852 -0.1195)
OKLCHoklch(35.19% 0.147 305.5)
XYZxyz(6.8031, 3.7116, 17.4940)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B76 #43761B
analogous
#201B76 #4E1B76 #761B70
triadic
#4E1B76 #764E1B #1B764E
tetradic
#4E1B76 #76201B #43761B #1B7076
square
#4E1B76 #76201B #43761B #1B7076
split-complementary
#4E1B76 #70761B #1B7620
monochromatic
#100619 #2D1044 #4E1B76 #6F26A8 #8F3AD2

Accessibility & contrast

On white

12.05
#4E1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B76
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B76#FFFFFF#000000##FFFFFF
##4E1B761.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#473147
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1b76;
/* rgb */ color: rgb(78, 27, 118);
/* oklch */ color: oklch(35.2% 0.147 305.5);
Tailwind
colors: {
  custom: {
    50: '#845d9e',
    500: '#4e1b76',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b76;
$custom-light: #845d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b76",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 273.626,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35187,
    "c": 0.14679,
    "h": 305.5
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#4E1B76
secondary
#70AA42
accent
#E6428A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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