#4D175D#4D175D

#4D175D is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.125 H 317.4°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#4D175D
RGBrgb(77, 23, 93)
HSLhsl(286, 60%, 23%)
HSVhsv(286, 75%, 36%)
CMYKcmyk(17.2%, 75.3%, 0%, 63.5%)
CIE-LABlab(19.97, 36.50, -30.13)
CIE-LCHlch(19.97, 47.33, 320.46°)
OKLaboklab(32.61% 0.0921 -0.0846)
OKLCHoklch(32.61% 0.125 317.4)
XYZxyz(5.3425, 2.9811, 10.6478)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D175D #275D17
analogous
#2A175D #4D175D #5D174A
triadic
#4D175D #5D4D17 #175D4D
tetradic
#4D175D #5D2A17 #275D17 #174A5D
square
#4D175D #5D2A17 #275D17 #174A5D
split-complementary
#4D175D #4A5D17 #175D2A
monochromatic
#140619 #240B2C #4D175D #76238E #9E2FBF

Accessibility & contrast

On white

13.16
#4D175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4D175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D175D
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D175D#FFFFFF#000000##FFFFFF
##4D175D1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#19325B
Tritanopia (blue-blind)
#4C2538
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d175d;
/* rgb */ color: rgb(77, 23, 93);
/* oklch */ color: oklch(32.6% 0.125 317.4);
Tailwind
colors: {
  custom: {
    50: '#825a8b',
    500: '#4d175d',
    950: '#000000',
  },
}
SCSS
$custom: #4d175d;
$custom-light: #825a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d175d",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 286.286,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32608,
    "c": 0.12505,
    "h": 317.4
  },
  "luminance": 0.02981
}

Semantic roles & 50–950 ramp

primary
#4D175D
secondary
#50943C
accent
#E34469
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D175D

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

Preview Lab → · Contrast checker → · Palette generator →

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