#4D175B#4D175B

#4D175B is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.123 H 318.6°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#4D175B
RGBrgb(77, 23, 91)
HSLhsl(288, 60%, 22%)
HSVhsv(288, 75%, 36%)
CMYKcmyk(15.4%, 74.7%, 0%, 64.3%)
CIE-LABlab(19.83, 36.05, -29.03)
CIE-LCHlch(19.83, 46.29, 321.16°)
OKLaboklab(32.46% 0.0922 -0.0814)
OKLCHoklch(32.46% 0.123 318.6)
XYZxyz(5.2550, 2.9461, 10.1874)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D175B #255B17
analogous
#2B175B #4D175B #5B1747
triadic
#4D175B #5B4D17 #175B4D
tetradic
#4D175B #5B2B17 #255B17 #17475B
square
#4D175B #5B2B17 #255B17 #17475B
split-complementary
#4D175B #475B17 #175B2B
monochromatic
#150618 #240B2A #4D175B #76238C #A030BD

Accessibility & contrast

On white

13.21
#4D175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4D175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D175B
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D175B#FFFFFF#000000##FFFFFF
##4D175B1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#1B3259
Tritanopia (blue-blind)
#4D2437
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d175b;
/* rgb */ color: rgb(77, 23, 91);
/* oklch */ color: oklch(32.5% 0.123 318.6);
Tailwind
colors: {
  custom: {
    50: '#81598a',
    500: '#4d175b',
    950: '#000000',
  },
}
SCSS
$custom: #4d175b;
$custom-light: #81598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d175b",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 287.647,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32462,
    "c": 0.123,
    "h": 318.6
  },
  "luminance": 0.02946
}

Semantic roles & 50–950 ramp

primary
#4D175B
secondary
#4E923C
accent
#E34565
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D175B

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

Preview Lab → · Contrast checker → · Palette generator →

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