#4C174F#4C174F

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

Color values

HEX#4C174F
RGBrgb(76, 23, 79)
HSLhsl(297, 55%, 20%)
HSVhsv(297, 71%, 31%)
CMYKcmyk(3.8%, 70.9%, 0%, 69%)
CIE-LABlab(18.86, 33.24, -22.50)
CIE-LCHlch(18.86, 40.14, 325.90°)
OKLaboklab(31.48% 0.0911 -0.0624)
OKLCHoklch(31.48% 0.11 325.6)
XYZxyz(4.6981, 2.7141, 7.6720)
Luminance0.0271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C174F #1A4F17
analogous
#30174F #4C174F #4F1736
triadic
#4C174F #4F4C17 #174F4C
tetradic
#4C174F #4F3017 #1A4F17 #17364F
square
#4C174F #4F3017 #1A4F17 #17364F
split-complementary
#4C174F #364F17 #174F30
monochromatic
#170718 #1E0920 #4C174F #7A257E #A733AE

Accessibility & contrast

On white

13.61
#4C174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C174F
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C174F#FFFFFF#000000##FFFFFF
##4C174F1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2A51
Deuteranopia (green-blind)
#22304E
Tritanopia (blue-blind)
#4E1F30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c174f;
/* rgb */ color: rgb(76, 23, 79);
/* oklch */ color: oklch(31.5% 0.110 325.6);
Tailwind
colors: {
  custom: {
    50: '#805980',
    500: '#4c174f',
    950: '#000000',
  },
}
SCSS
$custom: #4c174f;
$custom-light: #805980;
$custom-dark: #000000;
JSON
{
  "hex": "#4c174f",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 296.786,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.31477,
    "c": 0.11039,
    "h": 325.6
  },
  "luminance": 0.02714
}

Semantic roles & 50–950 ramp

primary
#4C174F
secondary
#40863C
accent
#DE4A52
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4C174F

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

Preview Lab → · Contrast checker → · Palette generator →

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