#4B174F#4B174F

#4B174F is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.3% C 0.110 H 324.8°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#4B174F
RGBrgb(75, 23, 79)
HSLhsl(296, 55%, 20%)
HSVhsv(296, 71%, 31%)
CMYKcmyk(5.1%, 70.9%, 0%, 69%)
CIE-LABlab(18.69, 32.96, -22.79)
CIE-LCHlch(18.69, 40.07, 325.34°)
OKLaboklab(31.32% 0.0898 -0.0633)
OKLCHoklch(31.32% 0.11 324.8)
XYZxyz(4.6192, 2.6734, 7.6683)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B174F #1B4F17
analogous
#2F174F #4B174F #4F1737
triadic
#4B174F #4F4B17 #174F4B
tetradic
#4B174F #4F2F17 #1B4F17 #17374F
square
#4B174F #4F2F17 #1B4F17 #17374F
split-complementary
#4B174F #374F17 #174F2F
monochromatic
#160718 #1E0920 #4B174F #78257E #A533AE

Accessibility & contrast

On white

13.68
#4B174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B174F
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B174F#FFFFFF#000000##FFFFFF
##4B174F1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2951
Deuteranopia (green-blind)
#21304E
Tritanopia (blue-blind)
#4D1F30
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4b174f;
/* rgb */ color: rgb(75, 23, 79);
/* oklch */ color: oklch(31.3% 0.110 324.8);
Tailwind
colors: {
  custom: {
    50: '#7f5980',
    500: '#4b174f',
    950: '#000000',
  },
}
SCSS
$custom: #4b174f;
$custom-light: #7f5980;
$custom-dark: #000000;
JSON
{
  "hex": "#4b174f",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 295.714,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.31316,
    "c": 0.10981,
    "h": 324.8
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#4B174F
secondary
#41863C
accent
#DE4A54
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4B174F

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

Preview Lab → · Contrast checker → · Palette generator →

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