#4E1B4E#4E1B4E

#4E1B4E is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.3% C 0.104 H 327.7°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#4E1B4E
RGBrgb(78, 27, 78)
HSLhsl(300, 49%, 21%)
HSVhsv(300, 65%, 31%)
CMYKcmyk(0%, 65.4%, 0%, 69.4%)
CIE-LABlab(19.86, 31.64, -20.22)
CIE-LCHlch(19.86, 37.55, 327.41°)
OKLaboklab(32.25% 0.0881 -0.0558)
OKLCHoklch(32.25% 0.104 327.7)
XYZxyz(4.9089, 2.9539, 7.5179)
Luminance0.0295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B4E #1B4E1B
analogous
#341B4E #4E1B4E #4E1B34
triadic
#4E1B4E #4E4E1B #1B4E4E
tetradic
#4E1B4E #4E341B #1B4E1B #1B344E
square
#4E1B4E #4E341B #1B4E1B #1B344E
split-complementary
#4E1B4E #344E1B #1B4E34
monochromatic
#170817 #210B21 #4E1B4E #7B2B7B #A93AA9

Accessibility & contrast

On white

13.20
#4E1B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4E1B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B4E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B4E#FFFFFF#000000##FFFFFF
##4E1B4E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152C50
Deuteranopia (green-blind)
#27324D
Tritanopia (blue-blind)
#502131
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1b4e;
/* rgb */ color: rgb(78, 27, 78);
/* oklch */ color: oklch(32.3% 0.104 327.7);
Tailwind
colors: {
  custom: {
    50: '#815b80',
    500: '#4e1b4e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b4e;
$custom-light: #815b80;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b4e",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 300,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32251,
    "c": 0.10427,
    "h": 327.7
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#4E1B4E
secondary
#418441
accent
#D85050
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E1B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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