#4E1B54#4E1B54

#4E1B54 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.6% C 0.110 H 323.4°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#4E1B54
RGBrgb(78, 27, 84)
HSLhsl(294, 51%, 22%)
HSVhsv(294, 68%, 33%)
CMYKcmyk(7.1%, 67.9%, 0%, 67.1%)
CIE-LABlab(20.22, 32.89, -23.71)
CIE-LCHlch(20.22, 40.54, 324.22°)
OKLaboklab(32.63% 0.0885 -0.0659)
OKLCHoklch(32.63% 0.11 323.4)
XYZxyz(5.1339, 3.0439, 8.7029)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B54 #21541B
analogous
#321B54 #4E1B54 #541B3E
triadic
#4E1B54 #544E1B #1B544E
tetradic
#4E1B54 #54321B #21541B #1B3E54
square
#4E1B54 #54321B #21541B #1B3E54
split-complementary
#4E1B54 #3E541B #1B5432
monochromatic
#160717 #230C26 #4E1B54 #792A82 #A439B1

Accessibility & contrast

On white

13.05
#4E1B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4E1B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B54
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B54#FFFFFF#000000##FFFFFF
##4E1B541.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2D56
Deuteranopia (green-blind)
#233353
Tritanopia (blue-blind)
#4F2434
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1b54;
/* rgb */ color: rgb(78, 27, 84);
/* oklch */ color: oklch(32.6% 0.110 323.4);
Tailwind
colors: {
  custom: {
    50: '#825b84',
    500: '#4e1b54',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b54;
$custom-light: #825b84;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b54",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 293.684,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3263,
    "c": 0.11034,
    "h": 323.4
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#4E1B54
secondary
#498A41
accent
#DB4D5C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1B54

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

Preview Lab → · Contrast checker → · Palette generator →

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