#4D1B59#4D1B59

#4D1B59 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.115 H 319.3°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#4D1B59
RGBrgb(77, 27, 89)
HSLhsl(288, 53%, 23%)
HSVhsv(288, 70%, 35%)
CMYKcmyk(13.5%, 69.7%, 0%, 65.1%)
CIE-LABlab(20.37, 33.70, -26.82)
CIE-LCHlch(20.37, 43.07, 321.49°)
OKLaboklab(32.81% 0.0873 -0.075)
OKLCHoklch(32.81% 0.115 319.3)
XYZxyz(5.2554, 3.0832, 9.7675)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B59 #27591B
analogous
#2E1B59 #4D1B59 #591B46
triadic
#4D1B59 #594D1B #1B594D
tetradic
#4D1B59 #592E1B #27591B #1B4659
square
#4D1B59 #592E1B #27591B #1B4659
split-complementary
#4D1B59 #46591B #1B592E
monochromatic
#140717 #240D2A #4D1B59 #762988 #9E37B7

Accessibility & contrast

On white

12.99
#4D1B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4D1B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B59
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B59#FFFFFF#000000##FFFFFF
##4D1B591.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082E5B
Deuteranopia (green-blind)
#1F3357
Tritanopia (blue-blind)
#4D2637
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d1b59;
/* rgb */ color: rgb(77, 27, 89);
/* oklch */ color: oklch(32.8% 0.115 319.3);
Tailwind
colors: {
  custom: {
    50: '#815c88',
    500: '#4d1b59',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b59;
$custom-light: #815c88;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b59",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 288.387,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32812,
    "c": 0.11504,
    "h": 319.3
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#4D1B59
secondary
#508F41
accent
#DD4B67
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4D1B59

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

Preview Lab → · Contrast checker → · Palette generator →

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