#4D154B#4D154B

#4D154B is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.1% C 0.110 H 329.3°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#4D154B
RGBrgb(77, 21, 75)
HSLhsl(302, 57%, 19%)
HSVhsv(302, 73%, 30%)
CMYKcmyk(0%, 72.7%, 2.6%, 69.8%)
CIE-LABlab(18.46, 33.65, -20.39)
CIE-LCHlch(18.46, 39.34, 328.78°)
OKLaboklab(31.15% 0.0948 -0.0562)
OKLCHoklch(31.15% 0.11 329.3)
XYZxyz(4.5987, 2.6224, 6.9192)
Luminance0.0262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D154B #154D17
analogous
#33154D #4D154B #4D152F
triadic
#4D154B #4B4D15 #154B4D
tetradic
#4D154B #4D3315 #154D17 #152F4D
square
#4D154B #4D3315 #154D17 #152F4D
split-complementary
#4D154B #2F4D15 #154D33
monochromatic
#180717 #1D081C #4D154B #7D227A #AD2FA9

Accessibility & contrast

On white

13.78
#4D154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4D154B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D154B
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D154B#FFFFFF#000000##FFFFFF
##4D154B1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F284D
Deuteranopia (green-blind)
#24304A
Tritanopia (blue-blind)
#501C2E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d154b;
/* rgb */ color: rgb(77, 21, 75);
/* oklch */ color: oklch(31.1% 0.110 329.3);
Tailwind
colors: {
  custom: {
    50: '#81587d',
    500: '#4d154b',
    950: '#000000',
  },
}
SCSS
$custom: #4d154b;
$custom-light: #81587d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d154b",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 302.143,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31146,
    "c": 0.11019,
    "h": 329.3
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#4D154B
secondary
#39853C
accent
#E04D47
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4D154B

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

Preview Lab → · Contrast checker → · Palette generator →

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