#4B174A#4B174A

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

Color values

HEX#4B174A
RGBrgb(75, 23, 74)
HSLhsl(301, 53%, 19%)
HSVhsv(301, 69%, 29%)
CMYKcmyk(0%, 69.3%, 1.3%, 70.6%)
CIE-LABlab(18.38, 31.94, -19.86)
CIE-LCHlch(18.38, 37.61, 328.12°)
OKLaboklab(31% 0.0895 -0.0548)
OKLCHoklch(31% 0.105 328.5)
XYZxyz(4.4440, 2.6034, 6.7457)
Luminance0.0260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B174A #174B18
analogous
#32174B #4B174A #4B1730
triadic
#4B174A #4A4B17 #174A4B
tetradic
#4B174A #4B3217 #174B18 #17304B
square
#4B174A #4B3217 #174B18 #17304B
split-complementary
#4B174A #304B17 #174B32
monochromatic
#170717 #1C091C #4B174A #7A2578 #A934A6

Accessibility & contrast

On white

13.81
#4B174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B174A
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B174A#FFFFFF#000000##FFFFFF
##4B174A1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11284C
Deuteranopia (green-blind)
#242F49
Tritanopia (blue-blind)
#4E1D2E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4b174a;
/* rgb */ color: rgb(75, 23, 74);
/* oklch */ color: oklch(31.0% 0.105 328.5);
Tailwind
colors: {
  custom: {
    50: '#7f597d',
    500: '#4b174a',
    950: '#000000',
  },
}
SCSS
$custom: #4b174a;
$custom-light: #7f597d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b174a",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 301.154,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30995,
    "c": 0.1049,
    "h": 328.5
  },
  "luminance": 0.02603
}

Semantic roles & 50–950 ramp

primary
#4B174A
secondary
#3C823D
accent
#DC4E4B
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A0409
muted
#7C797B

Preview Lab

Preview with #4B174A

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

Preview Lab → · Contrast checker → · Palette generator →

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