#4D177A#4D177A

#4D177A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.155 H 303.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4D177A
RGBrgb(77, 23, 122)
HSLhsl(273, 68%, 28%)
HSVhsv(273, 81%, 48%)
CMYKcmyk(36.9%, 81.1%, 0%, 52.2%)
CIE-LABlab(22.29, 43.34, -45.24)
CIE-LCHlch(22.29, 62.65, 313.77°)
OKLaboklab(34.98% 0.0865 -0.129)
OKLCHoklch(34.98% 0.155 303.9)
XYZxyz(6.8790, 3.5957, 18.7402)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D177A #447A17
analogous
#1B177A #4D177A #7A1775
triadic
#4D177A #7A4D17 #177A4D
tetradic
#4D177A #7A1B17 #447A17 #17757A
square
#4D177A #7A1B17 #447A17 #17757A
split-complementary
#4D177A #757A17 #177A1B
monochromatic
#10051A #2C0D47 #4D177A #6D21AD #8D33D9

Accessibility & contrast

On white

12.21
#4D177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4D177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D177A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D177A#FFFFFF#000000##FFFFFF
##4D177A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#443148
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d177a;
/* rgb */ color: rgb(77, 23, 122);
/* oklch */ color: oklch(35.0% 0.155 303.9);
Tailwind
colors: {
  custom: {
    50: '#845ba1',
    500: '#4d177a',
    950: '#000000',
  },
}
SCSS
$custom: #4d177a;
$custom-light: #845ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d177a",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 272.727,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34976,
    "c": 0.15532,
    "h": 303.9
  },
  "luminance": 0.03596
}

Semantic roles & 50–950 ramp

primary
#4D177A
secondary
#71AF3E
accent
#EB3D8C
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D177A

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

Preview Lab → · Contrast checker → · Palette generator →

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