#4E174F#4E174F

#4E174F is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.8% C 0.112 H 327.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#4E174F
RGBrgb(78, 23, 79)
HSLhsl(299, 55%, 20%)
HSVhsv(299, 71%, 31%)
CMYKcmyk(1.3%, 70.9%, 0%, 69%)
CIE-LABlab(19.21, 33.80, -21.92)
CIE-LCHlch(19.21, 40.28, 327.03°)
OKLaboklab(31.8% 0.0937 -0.0606)
OKLCHoklch(31.8% 0.112 327.1)
XYZxyz(4.8595, 2.7973, 7.6796)
Luminance0.0280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E174F #184F17
analogous
#32174F #4E174F #4F1734
triadic
#4E174F #4F4E17 #174F4E
tetradic
#4E174F #4F3217 #184F17 #17344F
square
#4E174F #4F3217 #184F17 #17344F
split-complementary
#4E174F #344F17 #174F32
monochromatic
#170718 #1F0920 #4E174F #7D257E #AC33AE

Accessibility & contrast

On white

13.47
#4E174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4E174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E174F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E174F#FFFFFF#000000##FFFFFF
##4E174F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A51
Deuteranopia (green-blind)
#24314E
Tritanopia (blue-blind)
#501F30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4e174f;
/* rgb */ color: rgb(78, 23, 79);
/* oklch */ color: oklch(31.8% 0.112 327.1);
Tailwind
colors: {
  custom: {
    50: '#825980',
    500: '#4e174f',
    950: '#000000',
  },
}
SCSS
$custom: #4e174f;
$custom-light: #825980;
$custom-dark: #000000;
JSON
{
  "hex": "#4e174f",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 298.929,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.31802,
    "c": 0.1116,
    "h": 327.1
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#4E174F
secondary
#3D863C
accent
#DE4A4C
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E174F

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

Preview Lab → · Contrast checker → · Palette generator →

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