#4C174E#4C174E

#4C174E is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.4% C 0.109 H 326.3°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#4C174E
RGBrgb(76, 23, 78)
HSLhsl(298, 54%, 20%)
HSVhsv(298, 71%, 31%)
CMYKcmyk(2.6%, 70.5%, 0%, 69.4%)
CIE-LABlab(18.80, 33.03, -21.92)
CIE-LCHlch(18.80, 39.64, 326.43°)
OKLaboklab(31.41% 0.091 -0.0607)
OKLCHoklch(31.41% 0.109 326.3)
XYZxyz(4.6619, 2.6996, 7.4818)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C174E #194E17
analogous
#31174E #4C174E #4E1735
triadic
#4C174E #4E4C17 #174E4C
tetradic
#4C174E #4E3117 #194E17 #17354E
square
#4C174E #4E3117 #194E17 #17354E
split-complementary
#4C174E #354E17 #174E31
monochromatic
#170718 #1E091F #4C174E #7A257D #A833AD

Accessibility & contrast

On white

13.64
#4C174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C174E
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C174E#FFFFFF#000000##FFFFFF
##4C174E1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2950
Deuteranopia (green-blind)
#23304D
Tritanopia (blue-blind)
#4E1F30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c174e;
/* rgb */ color: rgb(76, 23, 78);
/* oklch */ color: oklch(31.4% 0.109 326.3);
Tailwind
colors: {
  custom: {
    50: '#805980',
    500: '#4c174e',
    950: '#000000',
  },
}
SCSS
$custom: #4c174e;
$custom-light: #805980;
$custom-dark: #000000;
JSON
{
  "hex": "#4c174e",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 297.818,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31412,
    "c": 0.10942,
    "h": 326.3
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#4C174E
secondary
#3E853C
accent
#DE4A4F
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4C174E

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

Preview Lab → · Contrast checker → · Palette generator →

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