#4D174C#4D174C

#4D174C is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.4% C 0.108 H 328.5°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#4D174C
RGBrgb(77, 23, 76)
HSLhsl(301, 54%, 20%)
HSVhsv(301, 70%, 30%)
CMYKcmyk(0%, 70.1%, 1.3%, 69.8%)
CIE-LABlab(18.85, 32.91, -20.46)
CIE-LCHlch(18.85, 38.75, 328.14°)
OKLaboklab(31.45% 0.0922 -0.0564)
OKLCHoklch(31.45% 0.108 328.5)
XYZxyz(4.6714, 2.7127, 7.1136)
Luminance0.0271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D174C #174D18
analogous
#33174D #4D174C #4D1731
triadic
#4D174C #4C4D17 #174C4D
tetradic
#4D174C #4D3317 #174D18 #17314D
square
#4D174C #4D3317 #174D18 #17314D
split-complementary
#4D174C #314D17 #174D33
monochromatic
#180717 #1E091D #4D174C #7C257B #AB33A9

Accessibility & contrast

On white

13.62
#4D174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4D174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D174C
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D174C#FFFFFF#000000##FFFFFF
##4D174C1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11294E
Deuteranopia (green-blind)
#25304B
Tritanopia (blue-blind)
#501E2F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d174c;
/* rgb */ color: rgb(77, 23, 76);
/* oklch */ color: oklch(31.4% 0.108 328.5);
Tailwind
colors: {
  custom: {
    50: '#81597e',
    500: '#4d174c',
    950: '#000000',
  },
}
SCSS
$custom: #4d174c;
$custom-light: #81597e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d174c",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 301.111,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31449,
    "c": 0.1081,
    "h": 328.5
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#4D174C
secondary
#3C843D
accent
#DD4D4A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4D174C

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

Preview Lab → · Contrast checker → · Palette generator →

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