#4E1B8B#4E1B8B

#4E1B8B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.170 H 298.0°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#4E1B8B
RGBrgb(78, 27, 139)
HSLhsl(267, 67%, 33%)
HSVhsv(267, 81%, 55%)
CMYKcmyk(43.9%, 80.6%, 0%, 45.5%)
CIE-LABlab(24.54, 46.14, -52.27)
CIE-LCHlch(24.54, 69.72, 311.44°)
OKLaboklab(37.05% 0.0797 -0.1496)
OKLCHoklch(37.05% 0.17 298)
XYZxyz(8.1928, 4.2675, 24.8132)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B8B #588B1B
analogous
#1B208B #4E1B8B #861B8B
triadic
#4E1B8B #8B4E1B #1B8B4E
tetradic
#4E1B8B #8B1B20 #588B1B #1B8B86
square
#4E1B8B #8B1B20 #588B1B #1B8B86
split-complementary
#4E1B8B #8B861B #208B1B
monochromatic
#140725 #311158 #4E1B8B #6B25BE #8A45DB

Accessibility & contrast

On white

11.33
#4E1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B8B
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B8B#FFFFFF#000000##FFFFFF
##4E1B8B1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#3E3A53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e1b8b;
/* rgb */ color: rgb(78, 27, 139);
/* oklch */ color: oklch(37.0% 0.170 298.0);
Tailwind
colors: {
  custom: {
    50: '#865eae',
    500: '#4e1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b8b;
$custom-light: #865eae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b8b",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 267.321,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3705,
    "c": 0.16953,
    "h": 298
  },
  "luminance": 0.04268
}

Semantic roles & 50–950 ramp

primary
#4E1B8B
secondary
#86BC45
accent
#EA3D9C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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