#4E1B5A#4E1B5A

#4E1B5A is a dark, moderate purple. Relative luminance 0.031; OKLCH L 33.0% C 0.117 H 319.5°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#4E1B5A
RGBrgb(78, 27, 90)
HSLhsl(289, 54%, 23%)
HSVhsv(289, 70%, 35%)
CMYKcmyk(13.3%, 70%, 0%, 64.7%)
CIE-LABlab(20.60, 34.19, -27.11)
CIE-LCHlch(20.60, 43.63, 321.59°)
OKLaboklab(33.03% 0.0886 -0.0758)
OKLCHoklch(33.03% 0.117 319.5)
XYZxyz(5.3790, 3.1420, 9.9940)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B5A #275A1B
analogous
#2E1B5A #4E1B5A #5A1B46
triadic
#4E1B5A #5A4E1B #1B5A4E
tetradic
#4E1B5A #5A2E1B #275A1B #1B465A
square
#4E1B5A #5A2E1B #275A1B #1B465A
split-complementary
#4E1B5A #465A1B #1B5A2E
monochromatic
#140718 #250D2B #4E1B5A #772989 #A037B8

Accessibility & contrast

On white

12.90
#4E1B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4E1B5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B5A
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B5A#FFFFFF#000000##FFFFFF
##4E1B5A1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072E5C
Deuteranopia (green-blind)
#203358
Tritanopia (blue-blind)
#4E2638
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1b5a;
/* rgb */ color: rgb(78, 27, 90);
/* oklch */ color: oklch(33.0% 0.117 319.5);
Tailwind
colors: {
  custom: {
    50: '#825c89',
    500: '#4e1b5a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b5a;
$custom-light: #825c89;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b5a",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 90
  },
  "hsl": {
    "h": 288.571,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33032,
    "c": 0.1166,
    "h": 319.5
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#4E1B5A
secondary
#509041
accent
#DD4B67
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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