#4E1B8A#4E1B8A

#4E1B8A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.168 H 298.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4E1B8A
RGBrgb(78, 27, 138)
HSLhsl(268, 67%, 32%)
HSVhsv(268, 80%, 54%)
CMYKcmyk(43.5%, 80.4%, 0%, 45.9%)
CIE-LABlab(24.44, 45.88, -51.80)
CIE-LCHlch(24.44, 69.20, 311.54°)
OKLaboklab(36.96% 0.08 -0.1482)
OKLCHoklch(36.96% 0.168 298.3)
XYZxyz(8.1201, 4.2384, 24.4301)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B8A #578A1B
analogous
#1B1F8A #4E1B8A #861B8A
triadic
#4E1B8A #8A4E1B #1B8A4E
tetradic
#4E1B8A #8A1B1F #578A1B #1B8A86
square
#4E1B8A #8A1B1F #578A1B #1B8A86
split-complementary
#4E1B8A #8A861B #1F8A1B
monochromatic
#140724 #311157 #4E1B8A #6B25BD #8A45DB

Accessibility & contrast

On white

11.36
#4E1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B8A
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B8A#FFFFFF#000000##FFFFFF
##4E1B8A1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#3F3A52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e1b8a;
/* rgb */ color: rgb(78, 27, 138);
/* oklch */ color: oklch(37.0% 0.168 298.3);
Tailwind
colors: {
  custom: {
    50: '#865ead',
    500: '#4e1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b8a;
$custom-light: #865ead;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b8a",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 267.568,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36958,
    "c": 0.16845,
    "h": 298.3
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#4E1B8A
secondary
#85BC45
accent
#EA3E9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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