#4E174E#4E174E

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

Color values

HEX#4E174E
RGBrgb(78, 23, 78)
HSLhsl(300, 54%, 20%)
HSVhsv(300, 71%, 31%)
CMYKcmyk(0%, 70.5%, 0%, 69.4%)
CIE-LABlab(19.15, 33.60, -21.34)
CIE-LCHlch(19.15, 39.80, 327.58°)
OKLaboklab(31.74% 0.0936 -0.059)
OKLCHoklch(31.74% 0.111 327.8)
XYZxyz(4.8234, 2.7829, 7.4893)
Luminance0.0278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E174E #174E17
analogous
#33174E #4E174E #4E1733
triadic
#4E174E #4E4E17 #174E4E
tetradic
#4E174E #4E3317 #174E17 #17334E
square
#4E174E #4E3317 #174E17 #17334E
split-complementary
#4E174E #334E17 #174E33
monochromatic
#180718 #1F091F #4E174E #7D257D #AD33AD

Accessibility & contrast

On white

13.49
#4E174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E174E
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E174E#FFFFFF#000000##FFFFFF
##4E174E1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102A50
Deuteranopia (green-blind)
#24314D
Tritanopia (blue-blind)
#511E30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e174e;
/* rgb */ color: rgb(78, 23, 78);
/* oklch */ color: oklch(31.7% 0.111 327.8);
Tailwind
colors: {
  custom: {
    50: '#825980',
    500: '#4e174e',
    950: '#000000',
  },
}
SCSS
$custom: #4e174e;
$custom-light: #825980;
$custom-dark: #000000;
JSON
{
  "hex": "#4e174e",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 300,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31739,
    "c": 0.11064,
    "h": 327.8
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#4E174E
secondary
#3C853C
accent
#DE4A4A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E174E

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

Preview Lab → · Contrast checker → · Palette generator →

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