#4A174A#4A174A

#4A174A is a dark, moderate purple. Relative luminance 0.026; OKLCH L 30.8% C 0.104 H 327.7°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#4A174A
RGBrgb(74, 23, 74)
HSLhsl(300, 53%, 19%)
HSVhsv(300, 69%, 29%)
CMYKcmyk(0%, 68.9%, 0%, 71%)
CIE-LABlab(18.20, 31.65, -20.15)
CIE-LCHlch(18.20, 37.52, 327.51°)
OKLaboklab(30.83% 0.0882 -0.0556)
OKLCHoklch(30.83% 0.104 327.7)
XYZxyz(4.3664, 2.5633, 6.7420)
Luminance0.0256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A174A #174A17
analogous
#31174A #4A174A #4A1731
triadic
#4A174A #4A4A17 #174A4A
tetradic
#4A174A #4A3117 #174A17 #17314A
square
#4A174A #4A3117 #174A17 #17314A
split-complementary
#4A174A #314A17 #174A31
monochromatic
#170717 #1B081B #4A174A #792679 #A734A7

Accessibility & contrast

On white

13.88
#4A174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4A174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A174A
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A174A#FFFFFF#000000##FFFFFF
##4A174A1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11284C
Deuteranopia (green-blind)
#232F49
Tritanopia (blue-blind)
#4C1E2E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a174a;
/* rgb */ color: rgb(74, 23, 74);
/* oklch */ color: oklch(30.8% 0.104 327.7);
Tailwind
colors: {
  custom: {
    50: '#7f587d',
    500: '#4a174a',
    950: '#000000',
  },
}
SCSS
$custom: #4a174a;
$custom-light: #7f587d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a174a",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 300,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30831,
    "c": 0.10426,
    "h": 327.7
  },
  "luminance": 0.02563
}

Semantic roles & 50–950 ramp

primary
#4A174A
secondary
#3C813C
accent
#DC4C4C
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4A174A

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

Preview Lab → · Contrast checker → · Palette generator →

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