#4A174F#4A174F

#4A174F is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.2% C 0.109 H 324.1°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#4A174F
RGBrgb(74, 23, 79)
HSLhsl(295, 55%, 20%)
HSVhsv(295, 71%, 31%)
CMYKcmyk(6.3%, 70.9%, 0%, 69%)
CIE-LABlab(18.51, 32.68, -23.08)
CIE-LCHlch(18.51, 40.01, 324.77°)
OKLaboklab(31.16% 0.0884 -0.0641)
OKLCHoklch(31.16% 0.109 324.1)
XYZxyz(4.5416, 2.6334, 7.6647)
Luminance0.0263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A174F #1C4F17
analogous
#2E174F #4A174F #4F1738
triadic
#4A174F #4F4A17 #174F4A
tetradic
#4A174F #4F2E17 #1C4F17 #17384F
square
#4A174F #4F2E17 #1C4F17 #17384F
split-complementary
#4A174F #384F17 #174F2E
monochromatic
#160718 #1E0920 #4A174F #76257E #A333AE

Accessibility & contrast

On white

13.76
#4A174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A174F
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A174F#FFFFFF#000000##FFFFFF
##4A174F1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2951
Deuteranopia (green-blind)
#202F4E
Tritanopia (blue-blind)
#4C2030
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a174f;
/* rgb */ color: rgb(74, 23, 79);
/* oklch */ color: oklch(31.2% 0.109 324.1);
Tailwind
colors: {
  custom: {
    50: '#7f5980',
    500: '#4a174f',
    950: '#000000',
  },
}
SCSS
$custom: #4a174f;
$custom-light: #7f5980;
$custom-dark: #000000;
JSON
{
  "hex": "#4a174f",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 294.643,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.31155,
    "c": 0.10924,
    "h": 324.1
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#4A174F
secondary
#42863C
accent
#DE4A57
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4A174F

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

Preview Lab → · Contrast checker → · Palette generator →

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