#4D175E#4D175E

#4D175E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.126 H 316.8°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#4D175E
RGBrgb(77, 23, 94)
HSLhsl(286, 61%, 23%)
HSVhsv(286, 76%, 37%)
CMYKcmyk(18.1%, 75.5%, 0%, 63.1%)
CIE-LABlab(20.04, 36.72, -30.68)
CIE-LCHlch(20.04, 47.85, 320.12°)
OKLaboklab(32.68% 0.092 -0.0862)
OKLCHoklch(32.68% 0.126 316.8)
XYZxyz(5.3870, 2.9989, 10.8826)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D175E #285E17
analogous
#29175E #4D175E #5E174B
triadic
#4D175E #5E4D17 #175E4D
tetradic
#4D175E #5E2917 #285E17 #174B5E
square
#4D175E #5E2917 #285E17 #174B5E
split-complementary
#4D175E #4B5E17 #175E29
monochromatic
#140619 #250B2D #4D175E #75238F #9E2FC0

Accessibility & contrast

On white

13.13
#4D175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D175E
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D175E#FFFFFF#000000##FFFFFF
##4D175E1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#18325C
Tritanopia (blue-blind)
#4C2539
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d175e;
/* rgb */ color: rgb(77, 23, 94);
/* oklch */ color: oklch(32.7% 0.126 316.8);
Tailwind
colors: {
  custom: {
    50: '#825a8c',
    500: '#4d175e',
    950: '#000000',
  },
}
SCSS
$custom: #4d175e;
$custom-light: #825a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d175e",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 285.634,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32682,
    "c": 0.12608,
    "h": 316.8
  },
  "luminance": 0.02999
}

Semantic roles & 50–950 ramp

primary
#4D175E
secondary
#51953C
accent
#E4446A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D175E

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

Preview Lab → · Contrast checker → · Palette generator →

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