#4E1B4F#4E1B4F

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

Color values

HEX#4E1B4F
RGBrgb(78, 27, 79)
HSLhsl(299, 49%, 21%)
HSVhsv(299, 66%, 31%)
CMYKcmyk(1.3%, 65.8%, 0%, 69%)
CIE-LABlab(19.92, 31.84, -20.81)
CIE-LCHlch(19.92, 38.04, 326.84°)
OKLaboklab(32.31% 0.0882 -0.0575)
OKLCHoklch(32.31% 0.105 326.9)
XYZxyz(4.9450, 2.9684, 7.7081)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B4F #1C4F1B
analogous
#341B4F #4E1B4F #4F1B36
triadic
#4E1B4F #4F4E1B #1B4F4E
tetradic
#4E1B4F #4F341B #1C4F1B #1B364F
square
#4E1B4F #4F341B #1C4F1B #1B364F
split-complementary
#4E1B4F #364F1B #1B4F34
monochromatic
#170817 #210B21 #4E1B4F #7B2B7D #A83AAA

Accessibility & contrast

On white

13.18
#4E1B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B4F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B4F#FFFFFF#000000##FFFFFF
##4E1B4F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142C51
Deuteranopia (green-blind)
#26324E
Tritanopia (blue-blind)
#502232
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1b4f;
/* rgb */ color: rgb(78, 27, 79);
/* oklch */ color: oklch(32.3% 0.105 326.9);
Tailwind
colors: {
  custom: {
    50: '#825b80',
    500: '#4e1b4f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b4f;
$custom-light: #825b80;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b4f",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 298.846,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32313,
    "c": 0.10526,
    "h": 326.9
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#4E1B4F
secondary
#428541
accent
#D94F52
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E1B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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