#4E1B8D#4E1B8D

#4E1B8D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.172 H 297.4°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#4E1B8D
RGBrgb(78, 27, 141)
HSLhsl(267, 68%, 33%)
HSVhsv(267, 81%, 55%)
CMYKcmyk(44.7%, 80.9%, 0%, 44.7%)
CIE-LABlab(24.72, 46.66, -53.21)
CIE-LCHlch(24.72, 70.77, 311.24°)
OKLaboklab(37.24% 0.0791 -0.1524)
OKLCHoklch(37.24% 0.172 297.4)
XYZxyz(8.3403, 4.3265, 25.5898)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B8D #5A8D1B
analogous
#1B218D #4E1B8D #871B8D
triadic
#4E1B8D #8D4E1B #1B8D4E
tetradic
#4E1B8D #8D1B21 #5A8D1B #1B8D87
square
#4E1B8D #8D1B21 #5A8D1B #1B8D87
split-complementary
#4E1B8D #8D871B #218D1B
monochromatic
#150726 #32115A #4E1B8D #6A25C0 #8947DC

Accessibility & contrast

On white

11.26
#4E1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B8D
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B8D#FFFFFF#000000##FFFFFF
##4E1B8D1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#3D3B54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1b8d;
/* rgb */ color: rgb(78, 27, 141);
/* oklch */ color: oklch(37.2% 0.172 297.4);
Tailwind
colors: {
  custom: {
    50: '#865eaf',
    500: '#4e1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b8d;
$custom-light: #865eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b8d",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 266.842,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37237,
    "c": 0.17168,
    "h": 297.4
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#4E1B8D
secondary
#88BD46
accent
#EB3D9D
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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