#4B174E#4B174E

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

Color values

HEX#4B174E
RGBrgb(75, 23, 78)
HSLhsl(297, 54%, 20%)
HSVhsv(297, 71%, 31%)
CMYKcmyk(3.8%, 70.5%, 0%, 69.4%)
CIE-LABlab(18.62, 32.75, -22.21)
CIE-LCHlch(18.62, 39.57, 325.86°)
OKLaboklab(31.25% 0.0897 -0.0616)
OKLCHoklch(31.25% 0.109 325.5)
XYZxyz(4.5831, 2.6590, 7.4781)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B174E #1A4E17
analogous
#2F174E #4B174E #4E1736
triadic
#4B174E #4E4B17 #174E4B
tetradic
#4B174E #4E2F17 #1A4E17 #17364E
square
#4B174E #4E2F17 #1A4E17 #17364E
split-complementary
#4B174E #364E17 #174E2F
monochromatic
#170718 #1E091F #4B174E #78257D #A633AD

Accessibility & contrast

On white

13.71
#4B174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B174E
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B174E#FFFFFF#000000##FFFFFF
##4B174E1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2950
Deuteranopia (green-blind)
#22304D
Tritanopia (blue-blind)
#4D1F30
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4b174e;
/* rgb */ color: rgb(75, 23, 78);
/* oklch */ color: oklch(31.3% 0.109 325.5);
Tailwind
colors: {
  custom: {
    50: '#7f5980',
    500: '#4b174e',
    950: '#000000',
  },
}
SCSS
$custom: #4b174e;
$custom-light: #7f5980;
$custom-dark: #000000;
JSON
{
  "hex": "#4b174e",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 296.727,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.3125,
    "c": 0.10882,
    "h": 325.5
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

primary
#4B174E
secondary
#40853C
accent
#DE4A52
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4B174E

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

Preview Lab → · Contrast checker → · Palette generator →

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