#4A174C#4A174C

#4A174C is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.0% C 0.106 H 326.2°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#4A174C
RGBrgb(74, 23, 76)
HSLhsl(298, 54%, 19%)
HSVhsv(298, 70%, 30%)
CMYKcmyk(2.6%, 69.7%, 0%, 70.2%)
CIE-LABlab(18.32, 32.06, -21.33)
CIE-LCHlch(18.32, 38.51, 326.36°)
OKLaboklab(30.96% 0.0883 -0.059)
OKLCHoklch(30.96% 0.106 326.2)
XYZxyz(4.4349, 2.5907, 7.1025)
Luminance0.0259 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A174C #194C17
analogous
#30174C #4A174C #4C1734
triadic
#4A174C #4C4A17 #174C4A
tetradic
#4A174C #4C3017 #194C17 #17344C
square
#4A174C #4C3017 #194C17 #17344C
split-complementary
#4A174C #344C17 #174C30
monochromatic
#170717 #1C091D #4A174C #78257B #A533AA

Accessibility & contrast

On white

13.83
#4A174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4A174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A174C
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A174C#FFFFFF#000000##FFFFFF
##4A174C1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F294E
Deuteranopia (green-blind)
#222F4B
Tritanopia (blue-blind)
#4C1E2F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a174c;
/* rgb */ color: rgb(74, 23, 76);
/* oklch */ color: oklch(31.0% 0.106 326.2);
Tailwind
colors: {
  custom: {
    50: '#7f587e',
    500: '#4a174c',
    950: '#000000',
  },
}
SCSS
$custom: #4a174c;
$custom-light: #7f587e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a174c",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 297.736,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30959,
    "c": 0.10623,
    "h": 326.2
  },
  "luminance": 0.0259
}

Semantic roles & 50–950 ramp

primary
#4A174C
secondary
#3E833C
accent
#DD4B50
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4A174C

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

Preview Lab → · Contrast checker → · Palette generator →

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