#4D174F#4D174F

#4D174F is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.6% C 0.111 H 326.3°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#4D174F
RGBrgb(77, 23, 79)
HSLhsl(298, 55%, 20%)
HSVhsv(298, 71%, 31%)
CMYKcmyk(2.5%, 70.9%, 0%, 69%)
CIE-LABlab(19.04, 33.52, -22.21)
CIE-LCHlch(19.04, 40.21, 326.47°)
OKLaboklab(31.64% 0.0924 -0.0615)
OKLCHoklch(31.64% 0.111 326.3)
XYZxyz(4.7782, 2.7554, 7.6758)
Luminance0.0276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D174F #194F17
analogous
#31174F #4D174F #4F1735
triadic
#4D174F #4F4D17 #174F4D
tetradic
#4D174F #4F3117 #194F17 #17354F
square
#4D174F #4F3117 #194F17 #17354F
split-complementary
#4D174F #354F17 #174F31
monochromatic
#170718 #1F0920 #4D174F #7B257E #A933AE

Accessibility & contrast

On white

13.54
#4D174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D174F
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D174F#FFFFFF#000000##FFFFFF
##4D174F1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2A51
Deuteranopia (green-blind)
#23314E
Tritanopia (blue-blind)
#4F1F30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d174f;
/* rgb */ color: rgb(77, 23, 79);
/* oklch */ color: oklch(31.6% 0.111 326.3);
Tailwind
colors: {
  custom: {
    50: '#815980',
    500: '#4d174f',
    950: '#000000',
  },
}
SCSS
$custom: #4d174f;
$custom-light: #815980;
$custom-dark: #000000;
JSON
{
  "hex": "#4d174f",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 297.857,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.31639,
    "c": 0.11099,
    "h": 326.3
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#4D174F
secondary
#3E863C
accent
#DE4A4F
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4D174F

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

Preview Lab → · Contrast checker → · Palette generator →

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