#4D154C#4D154C

#4D154C is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.2% C 0.111 H 328.6°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#4D154C
RGBrgb(77, 21, 76)
HSLhsl(301, 57%, 19%)
HSVhsv(301, 73%, 30%)
CMYKcmyk(0%, 72.7%, 1.3%, 69.8%)
CIE-LABlab(18.52, 33.84, -20.98)
CIE-LCHlch(18.52, 39.82, 328.20°)
OKLaboklab(31.21% 0.0948 -0.0579)
OKLCHoklch(31.21% 0.111 328.6)
XYZxyz(4.6332, 2.6362, 7.1009)
Luminance0.0264 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D154C #154D16
analogous
#32154D #4D154C #4D1530
triadic
#4D154C #4C4D15 #154C4D
tetradic
#4D154C #4D3215 #154D16 #15304D
square
#4D154C #4D3215 #154D16 #15304D
split-complementary
#4D154C #304D15 #154D32
monochromatic
#180718 #1D081D #4D154C #7D227B #AD2FAB

Accessibility & contrast

On white

13.75
#4D154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D154C
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D154C#FFFFFF#000000##FFFFFF
##4D154C1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d154c;
/* rgb */ color: rgb(77, 21, 76);
/* oklch */ color: oklch(31.2% 0.111 328.6);
Tailwind
colors: {
  custom: {
    50: '#81587e',
    500: '#4d154c',
    950: '#000000',
  },
}
SCSS
$custom: #4d154c;
$custom-light: #81587e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d154c",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 301.071,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.3121,
    "c": 0.11112,
    "h": 328.6
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#4D154C
secondary
#39853A
accent
#E04A47
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D154C

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

Preview Lab → · Contrast checker → · Palette generator →

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