#4A174B#4A174B

#4A174B is a dark, moderate purple. Relative luminance 0.026; OKLCH L 30.9% C 0.105 H 327.0°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#4A174B
RGBrgb(74, 23, 75)
HSLhsl(299, 53%, 19%)
HSVhsv(299, 69%, 29%)
CMYKcmyk(1.3%, 69.3%, 0%, 70.6%)
CIE-LABlab(18.26, 31.85, -20.74)
CIE-LCHlch(18.26, 38.01, 326.93°)
OKLaboklab(30.9% 0.0882 -0.0573)
OKLCHoklch(30.9% 0.105 327)
XYZxyz(4.4004, 2.5769, 6.9209)
Luminance0.0258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A174B #184B17
analogous
#30174B #4A174B #4B1732
triadic
#4A174B #4B4A17 #174B4A
tetradic
#4A174B #4B3017 #184B17 #17324B
square
#4A174B #4B3017 #184B17 #17324B
split-complementary
#4A174B #324B17 #174B30
monochromatic
#170717 #1C091C #4A174B #78257A #A634A9

Accessibility & contrast

On white

13.86
#4A174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A174B
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A174B#FFFFFF#000000##FFFFFF
##4A174B1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10284D
Deuteranopia (green-blind)
#232F4A
Tritanopia (blue-blind)
#4C1E2E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a174b;
/* rgb */ color: rgb(74, 23, 75);
/* oklch */ color: oklch(30.9% 0.105 327.0);
Tailwind
colors: {
  custom: {
    50: '#7f587d',
    500: '#4a174b',
    950: '#000000',
  },
}
SCSS
$custom: #4a174b;
$custom-light: #7f587d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a174b",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 298.846,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30895,
    "c": 0.10524,
    "h": 327
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#4A174B
secondary
#3D823C
accent
#DC4B4E
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4A174B

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

Preview Lab → · Contrast checker → · Palette generator →

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