#4E1B71#4E1B71

#4E1B71 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.141 H 307.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4E1B71
RGBrgb(78, 27, 113)
HSLhsl(276, 61%, 27%)
HSVhsv(276, 76%, 44%)
CMYKcmyk(31%, 76.1%, 0%, 55.7%)
CIE-LABlab(22.29, 39.58, -39.46)
CIE-LCHlch(22.29, 55.89, 315.09°)
OKLaboklab(34.77% 0.0862 -0.112)
OKLCHoklch(34.77% 0.141 307.6)
XYZxyz(6.5138, 3.5959, 15.9705)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B71 #3E711B
analogous
#231B71 #4E1B71 #711B69
triadic
#4E1B71 #714E1B #1B714E
tetradic
#4E1B71 #71231B #3E711B #1B6971
square
#4E1B71 #71231B #3E711B #1B6971
split-complementary
#4E1B71 #69711B #1B7123
monochromatic
#110619 #2C0F40 #4E1B71 #7027A2 #9137CF

Accessibility & contrast

On white

12.21
#4E1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B71
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B71#FFFFFF#000000##FFFFFF
##4E1B711.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#482F44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1b71;
/* rgb */ color: rgb(78, 27, 113);
/* oklch */ color: oklch(34.8% 0.141 307.6);
Tailwind
colors: {
  custom: {
    50: '#835d9a',
    500: '#4e1b71',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b71;
$custom-light: #835d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b71",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 275.581,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34772,
    "c": 0.14136,
    "h": 307.6
  },
  "luminance": 0.03596
}

Semantic roles & 50–950 ramp

primary
#4E1B71
secondary
#6BA642
accent
#E54385
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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