#4C174B#4C174B

#4C174B is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.2% C 0.107 H 328.5°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#4C174B
RGBrgb(76, 23, 75)
HSLhsl(301, 54%, 19%)
HSVhsv(301, 70%, 30%)
CMYKcmyk(0%, 69.7%, 1.3%, 70.2%)
CIE-LABlab(18.62, 32.43, -20.16)
CIE-LCHlch(18.62, 38.19, 328.13°)
OKLaboklab(31.22% 0.0908 -0.0556)
OKLCHoklch(31.22% 0.107 328.5)
XYZxyz(4.5568, 2.6576, 6.9282)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C174B #174C18
analogous
#33174C #4C174B #4C1731
triadic
#4C174B #4B4C17 #174B4C
tetradic
#4C174B #4C3317 #174C18 #17314C
square
#4C174B #4C3317 #174C18 #17314C
split-complementary
#4C174B #314C17 #174C33
monochromatic
#170717 #1D091D #4C174B #7B2579 #AA33A8

Accessibility & contrast

On white

13.71
#4C174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4C174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C174B
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C174B#FFFFFF#000000##FFFFFF
##4C174B1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11294D
Deuteranopia (green-blind)
#24304A
Tritanopia (blue-blind)
#4F1E2E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c174b;
/* rgb */ color: rgb(76, 23, 75);
/* oklch */ color: oklch(31.2% 0.107 328.5);
Tailwind
colors: {
  custom: {
    50: '#80597d',
    500: '#4c174b',
    950: '#000000',
  },
}
SCSS
$custom: #4c174b;
$custom-light: #80597d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c174b",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 301.132,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31222,
    "c": 0.10651,
    "h": 328.5
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#4C174B
secondary
#3C833D
accent
#DD4E4B
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A0409
muted
#7C797B

Preview Lab

Preview with #4C174B

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

Preview Lab → · Contrast checker → · Palette generator →

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