#4D175C#4D175C

#4D175C is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.5% C 0.124 H 318.0°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#4D175C
RGBrgb(77, 23, 92)
HSLhsl(287, 60%, 23%)
HSVhsv(287, 75%, 36%)
CMYKcmyk(16.3%, 75%, 0%, 63.9%)
CIE-LABlab(19.90, 36.27, -29.58)
CIE-LCHlch(19.90, 46.81, 320.81°)
OKLaboklab(32.53% 0.0922 -0.083)
OKLCHoklch(32.53% 0.124 318)
XYZxyz(5.2985, 2.9635, 10.4161)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D175C #265C17
analogous
#2B175C #4D175C #5C1748
triadic
#4D175C #5C4D17 #175C4D
tetradic
#4D175C #5C2B17 #265C17 #17485C
square
#4D175C #5C2B17 #265C17 #17485C
split-complementary
#4D175C #485C17 #175C2B
monochromatic
#140618 #240B2B #4D175C #76238D #9F2FBE

Accessibility & contrast

On white

13.19
#4D175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D175C
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D175C#FFFFFF#000000##FFFFFF
##4D175C1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d175c;
/* rgb */ color: rgb(77, 23, 92);
/* oklch */ color: oklch(32.5% 0.124 318.0);
Tailwind
colors: {
  custom: {
    50: '#815a8a',
    500: '#4d175c',
    950: '#000000',
  },
}
SCSS
$custom: #4d175c;
$custom-light: #815a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d175c",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 286.957,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32535,
    "c": 0.12403,
    "h": 318
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#4D175C
secondary
#4F933C
accent
#E34567
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D175C

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

Preview Lab → · Contrast checker → · Palette generator →

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