#4A174E#4A174E

#4A174E is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.1% C 0.108 H 324.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#4A174E
RGBrgb(74, 23, 78)
HSLhsl(296, 54%, 20%)
HSVhsv(296, 71%, 31%)
CMYKcmyk(5.1%, 70.5%, 0%, 69.4%)
CIE-LABlab(18.45, 32.47, -22.50)
CIE-LCHlch(18.45, 39.50, 325.28°)
OKLaboklab(31.09% 0.0884 -0.0624)
OKLCHoklch(31.09% 0.108 324.8)
XYZxyz(4.5055, 2.6190, 7.4744)
Luminance0.0262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A174E #1B4E17
analogous
#2E174E #4A174E #4E1737
triadic
#4A174E #4E4A17 #174E4A
tetradic
#4A174E #4E2E17 #1B4E17 #17374E
square
#4A174E #4E2E17 #1B4E17 #17374E
split-complementary
#4A174E #374E17 #174E2E
monochromatic
#160718 #1D091F #4A174E #77257D #A433AD

Accessibility & contrast

On white

13.78
#4A174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A174E
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A174E#FFFFFF#000000##FFFFFF
##4A174E1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2950
Deuteranopia (green-blind)
#212F4D
Tritanopia (blue-blind)
#4C1F30
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a174e;
/* rgb */ color: rgb(74, 23, 78);
/* oklch */ color: oklch(31.1% 0.108 324.8);
Tailwind
colors: {
  custom: {
    50: '#7f5980',
    500: '#4a174e',
    950: '#000000',
  },
}
SCSS
$custom: #4a174e;
$custom-light: #7f5980;
$custom-dark: #000000;
JSON
{
  "hex": "#4a174e",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 295.636,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31089,
    "c": 0.10822,
    "h": 324.8
  },
  "luminance": 0.02619
}

Semantic roles & 50–950 ramp

primary
#4A174E
secondary
#41853C
accent
#DE4A55
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4A174E

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

Preview Lab → · Contrast checker → · Palette generator →

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