#4D174E#4D174E

#4D174E is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.6% C 0.110 H 327.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#4D174E
RGBrgb(77, 23, 78)
HSLhsl(299, 54%, 20%)
HSVhsv(299, 71%, 31%)
CMYKcmyk(1.3%, 70.5%, 0%, 69.4%)
CIE-LABlab(18.97, 33.31, -21.63)
CIE-LCHlch(18.97, 39.72, 327.01°)
OKLaboklab(31.57% 0.0923 -0.0598)
OKLCHoklch(31.57% 0.11 327.1)
XYZxyz(4.7420, 2.7409, 7.4855)
Luminance0.0274 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D174E #184E17
analogous
#32174E #4D174E #4E1734
triadic
#4D174E #4E4D17 #174E4D
tetradic
#4D174E #4E3217 #184E17 #17344E
square
#4D174E #4E3217 #184E17 #17344E
split-complementary
#4D174E #344E17 #174E32
monochromatic
#170718 #1E091F #4D174E #7C257D #AA33AD

Accessibility & contrast

On white

13.56
#4D174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D174E
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D174E#FFFFFF#000000##FFFFFF
##4D174E1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A50
Deuteranopia (green-blind)
#24314D
Tritanopia (blue-blind)
#4F1F30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d174e;
/* rgb */ color: rgb(77, 23, 78);
/* oklch */ color: oklch(31.6% 0.110 327.1);
Tailwind
colors: {
  custom: {
    50: '#815980',
    500: '#4d174e',
    950: '#000000',
  },
}
SCSS
$custom: #4d174e;
$custom-light: #815980;
$custom-dark: #000000;
JSON
{
  "hex": "#4d174e",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 298.909,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31575,
    "c": 0.11003,
    "h": 327.1
  },
  "luminance": 0.02741
}

Semantic roles & 50–950 ramp

primary
#4D174E
secondary
#3D853C
accent
#DE4A4D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4D174E

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

Preview Lab → · Contrast checker → · Palette generator →

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