#4D174D#4D174D

#4D174D is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.5% C 0.109 H 327.8°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#4D174D
RGBrgb(77, 23, 77)
HSLhsl(300, 54%, 20%)
HSVhsv(300, 70%, 30%)
CMYKcmyk(0%, 70.1%, 0%, 69.8%)
CIE-LABlab(18.91, 33.11, -21.05)
CIE-LCHlch(18.91, 39.24, 327.56°)
OKLaboklab(31.51% 0.0923 -0.0581)
OKLCHoklch(31.51% 0.109 327.8)
XYZxyz(4.7065, 2.7267, 7.2982)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D174D #174D17
analogous
#32174D #4D174D #4D1732
triadic
#4D174D #4D4D17 #174D4D
tetradic
#4D174D #4D3217 #174D17 #17324D
square
#4D174D #4D3217 #174D17 #17324D
split-complementary
#4D174D #324D17 #174D32
monochromatic
#180718 #1E091E #4D174D #7C257C #AB33AB

Accessibility & contrast

On white

13.59
#4D174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4D174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D174D
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D174D#FFFFFF#000000##FFFFFF
##4D174D1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10294F
Deuteranopia (green-blind)
#24304C
Tritanopia (blue-blind)
#501E2F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d174d;
/* rgb */ color: rgb(77, 23, 77);
/* oklch */ color: oklch(31.5% 0.109 327.8);
Tailwind
colors: {
  custom: {
    50: '#81597f',
    500: '#4d174d',
    950: '#000000',
  },
}
SCSS
$custom: #4d174d;
$custom-light: #81597f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d174d",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 300,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31512,
    "c": 0.10906,
    "h": 327.8
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

primary
#4D174D
secondary
#3C843C
accent
#DD4A4A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4D174D

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

Preview Lab → · Contrast checker → · Palette generator →

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