#4E1B46#4E1B46

#4E1B46 is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.8% C 0.097 H 334.2°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#4E1B46
RGBrgb(78, 27, 70)
HSLhsl(309, 49%, 21%)
HSVhsv(309, 65%, 31%)
CMYKcmyk(0%, 65.4%, 10.3%, 69.4%)
CIE-LABlab(19.42, 30.07, -15.46)
CIE-LCHlch(19.42, 33.81, 332.80°)
OKLaboklab(31.78% 0.087 -0.0421)
OKLCHoklch(31.78% 0.097 334.2)
XYZxyz(4.6393, 2.8461, 6.0982)
Luminance0.0285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B46 #1B4E23
analogous
#3C1B4E #4E1B46 #4E1B2C
triadic
#4E1B46 #464E1B #1B464E
tetradic
#4E1B46 #4E3C1B #1B4E23 #1B2C4E
square
#4E1B46 #4E3C1B #1B4E23 #1B2C4E
split-complementary
#4E1B46 #2C4E1B #1B4E3C
monochromatic
#170814 #210B1D #4E1B46 #7B2B6F #A93A98

Accessibility & contrast

On white

13.38
#4E1B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4E1B46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B46
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B46#FFFFFF#000000##FFFFFF
##4E1B461.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2A47
Deuteranopia (green-blind)
#2A3245
Tritanopia (blue-blind)
#521E2D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4e1b46;
/* rgb */ color: rgb(78, 27, 70);
/* oklch */ color: oklch(31.8% 0.097 334.2);
Tailwind
colors: {
  custom: {
    50: '#815b79',
    500: '#4e1b46',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b46;
$custom-light: #815b79;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b46",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 70
  },
  "hsl": {
    "h": 309.412,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31784,
    "c": 0.09662,
    "h": 334.2
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#4E1B46
secondary
#41844B
accent
#D86550
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #4E1B46

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

Preview Lab → · Contrast checker → · Palette generator →

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