#4C174D#4C174D

#4C174D is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.3% C 0.108 H 327.0°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#4C174D
RGBrgb(76, 23, 77)
HSLhsl(299, 54%, 20%)
HSVhsv(299, 70%, 30%)
CMYKcmyk(1.3%, 70.1%, 0%, 69.8%)
CIE-LABlab(18.74, 32.83, -21.34)
CIE-LCHlch(18.74, 39.15, 326.98°)
OKLaboklab(31.35% 0.091 -0.059)
OKLCHoklch(31.35% 0.108 327)
XYZxyz(4.6264, 2.6854, 7.2944)
Luminance0.0268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C174D #184D17
analogous
#31174D #4C174D #4D1733
triadic
#4C174D #4D4C17 #174D4C
tetradic
#4C174D #4D3117 #184D17 #17334D
square
#4C174D #4D3117 #184D17 #17334D
split-complementary
#4C174D #334D17 #174D31
monochromatic
#170718 #1D091E #4C174D #7B257C #A933AB

Accessibility & contrast

On white

13.66
#4C174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4C174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C174D
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C174D#FFFFFF#000000##FFFFFF
##4C174D1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F294F
Deuteranopia (green-blind)
#23304C
Tritanopia (blue-blind)
#4E1E2F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c174d;
/* rgb */ color: rgb(76, 23, 77);
/* oklch */ color: oklch(31.3% 0.108 327.0);
Tailwind
colors: {
  custom: {
    50: '#80597f',
    500: '#4c174d',
    950: '#000000',
  },
}
SCSS
$custom: #4c174d;
$custom-light: #80597f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c174d",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 298.889,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31348,
    "c": 0.10844,
    "h": 327
  },
  "luminance": 0.02685
}

Semantic roles & 50–950 ramp

primary
#4C174D
secondary
#3D843C
accent
#DD4A4D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4C174D

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

Preview Lab → · Contrast checker → · Palette generator →

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