#4E1B8E#4E1B8E

#4E1B8E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.173 H 297.1°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#4E1B8E
RGBrgb(78, 27, 142)
HSLhsl(267, 68%, 33%)
HSVhsv(267, 81%, 56%)
CMYKcmyk(45.1%, 81%, 0%, 44.3%)
CIE-LABlab(24.82, 46.92, -53.68)
CIE-LCHlch(24.82, 71.29, 311.15°)
OKLaboklab(37.33% 0.0787 -0.1538)
OKLCHoklch(37.33% 0.173 297.1)
XYZxyz(8.4150, 4.3564, 25.9834)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B8E #5B8E1B
analogous
#1B218E #4E1B8E #871B8E
triadic
#4E1B8E #8E4E1B #1B8E4E
tetradic
#4E1B8E #8E1B21 #5B8E1B #1B8E87
square
#4E1B8E #8E1B21 #5B8E1B #1B8E87
split-complementary
#4E1B8E #8E871B #218E1B
monochromatic
#160727 #32115B #4E1B8E #6A25C1 #8947DC

Accessibility & contrast

On white

11.22
#4E1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B8E
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B8E#FFFFFF#000000##FFFFFF
##4E1B8E1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#3D3B55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1b8e;
/* rgb */ color: rgb(78, 27, 142);
/* oklch */ color: oklch(37.3% 0.173 297.1);
Tailwind
colors: {
  custom: {
    50: '#875eb0',
    500: '#4e1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b8e;
$custom-light: #875eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b8e",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 266.609,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3733,
    "c": 0.17276,
    "h": 297.1
  },
  "luminance": 0.04357
}

Semantic roles & 50–950 ramp

primary
#4E1B8E
secondary
#89BE47
accent
#EB3D9E
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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