#4D154D#4D154D

#4D154D is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.3% C 0.112 H 327.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#4D154D
RGBrgb(77, 21, 77)
HSLhsl(300, 57%, 19%)
HSVhsv(300, 73%, 30%)
CMYKcmyk(0%, 72.7%, 0%, 69.8%)
CIE-LABlab(18.59, 34.03, -21.57)
CIE-LCHlch(18.59, 40.29, 327.64°)
OKLaboklab(31.27% 0.0949 -0.0596)
OKLCHoklch(31.27% 0.112 327.8)
XYZxyz(4.6682, 2.6503, 7.2854)
Luminance0.0265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D154D #154D15
analogous
#31154D #4D154D #4D1531
triadic
#4D154D #4D4D15 #154D4D
tetradic
#4D154D #4D3115 #154D15 #15314D
square
#4D154D #4D3115 #154D15 #15314D
split-complementary
#4D154D #314D15 #154D31
monochromatic
#180718 #1D081D #4D154D #7D227D #AD2FAD

Accessibility & contrast

On white

13.73
#4D154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4D154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D154D
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D154D#FFFFFF#000000##FFFFFF
##4D154D1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D294F
Deuteranopia (green-blind)
#23304C
Tritanopia (blue-blind)
#501D2F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d154d;
/* rgb */ color: rgb(77, 21, 77);
/* oklch */ color: oklch(31.3% 0.112 327.8);
Tailwind
colors: {
  custom: {
    50: '#81587f',
    500: '#4d154d',
    950: '#000000',
  },
}
SCSS
$custom: #4d154d;
$custom-light: #81587f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d154d",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 300,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31273,
    "c": 0.11205,
    "h": 327.8
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#4D154D
secondary
#398539
accent
#E04747
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D154D

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

Preview Lab → · Contrast checker → · Palette generator →

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