#4E1B82#4E1B82

#4E1B82 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.160 H 301.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#4E1B82
RGBrgb(78, 27, 130)
HSLhsl(270, 66%, 31%)
HSVhsv(270, 79%, 51%)
CMYKcmyk(40%, 79.2%, 0%, 49%)
CIE-LABlab(23.72, 43.84, -47.96)
CIE-LCHlch(23.72, 64.98, 312.43°)
OKLaboklab(36.23% 0.0823 -0.137)
OKLCHoklch(36.23% 0.16 301)
XYZxyz(7.5621, 4.0152, 21.4914)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B82 #4F821B
analogous
#1B1B82 #4E1B82 #811B82
triadic
#4E1B82 #824E1B #1B824E
tetradic
#4E1B82 #821B1B #4F821B #1B8281
square
#4E1B82 #821B1B #4F821B #1B8281
split-complementary
#4E1B82 #82811B #1B821B
monochromatic
#11061D #30104F #4E1B82 #6C26B5 #8B40D7

Accessibility & contrast

On white

11.65
#4E1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B82
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B82#FFFFFF#000000##FFFFFF
##4E1B821.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#42364E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1b82;
/* rgb */ color: rgb(78, 27, 130);
/* oklch */ color: oklch(36.2% 0.160 301.0);
Tailwind
colors: {
  custom: {
    50: '#855ea7',
    500: '#4e1b82',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b82;
$custom-light: #855ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b82",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 269.709,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3623,
    "c": 0.15981,
    "h": 301
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#4E1B82
secondary
#7DB643
accent
#E93F95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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