#4D175F#4D175F

#4D175F is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.127 H 316.3°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#4D175F
RGBrgb(77, 23, 95)
HSLhsl(285, 61%, 23%)
HSVhsv(285, 76%, 37%)
CMYKcmyk(18.9%, 75.8%, 0%, 62.7%)
CIE-LABlab(20.11, 36.94, -31.22)
CIE-LCHlch(20.11, 48.37, 319.79°)
OKLaboklab(32.76% 0.0919 -0.0878)
OKLCHoklch(32.76% 0.127 316.3)
XYZxyz(5.4322, 3.0170, 11.1204)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D175F #295F17
analogous
#29175F #4D175F #5F174D
triadic
#4D175F #5F4D17 #175F4D
tetradic
#4D175F #5F2917 #295F17 #174D5F
square
#4D175F #5F2917 #295F17 #174D5F
split-complementary
#4D175F #4D5F17 #175F29
monochromatic
#140619 #250B2E #4D175F #752390 #9D2FC2

Accessibility & contrast

On white

13.10
#4D175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D175F
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D175F#FFFFFF#000000##FFFFFF
##4D175F1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#17325D
Tritanopia (blue-blind)
#4C2639
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d175f;
/* rgb */ color: rgb(77, 23, 95);
/* oklch */ color: oklch(32.8% 0.127 316.3);
Tailwind
colors: {
  custom: {
    50: '#825a8d',
    500: '#4d175f',
    950: '#000000',
  },
}
SCSS
$custom: #4d175f;
$custom-light: #825a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d175f",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 285,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.32757,
    "c": 0.12711,
    "h": 316.3
  },
  "luminance": 0.03017
}

Semantic roles & 50–950 ramp

primary
#4D175F
secondary
#52963C
accent
#E4446C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D175F

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

Preview Lab → · Contrast checker → · Palette generator →

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