#4D176A#4D176A

#4D176A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.139 H 310.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#4D176A
RGBrgb(77, 23, 106)
HSLhsl(279, 64%, 25%)
HSVhsv(279, 78%, 42%)
CMYKcmyk(27.4%, 78.3%, 0%, 58.4%)
CIE-LABlab(20.95, 39.48, -37.10)
CIE-LCHlch(20.95, 54.18, 316.77°)
OKLaboklab(33.62% 0.0903 -0.1051)
OKLCHoklch(33.62% 0.139 310.7)
XYZxyz(5.9680, 3.2313, 13.9422)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D176A #346A17
analogous
#23176A #4D176A #6A175D
triadic
#4D176A #6A4D17 #176A4D
tetradic
#4D176A #6A2317 #346A17 #175D6A
square
#4D176A #6A2317 #346A17 #175D6A
split-complementary
#4D176A #5D6A17 #176A23
monochromatic
#120519 #280C38 #4D176A #72229C #962DCF

Accessibility & contrast

On white

12.76
#4D176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4D176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D176A
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D176A#FFFFFF#000000##FFFFFF
##4D176A1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#063368
Tritanopia (blue-blind)
#492A3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d176a;
/* rgb */ color: rgb(77, 23, 106);
/* oklch */ color: oklch(33.6% 0.139 310.7);
Tailwind
colors: {
  custom: {
    50: '#825a95',
    500: '#4d176a',
    950: '#000000',
  },
}
SCSS
$custom: #4d176a;
$custom-light: #825a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4d176a",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 279.036,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33615,
    "c": 0.13854,
    "h": 310.7
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#4D176A
secondary
#5FA03D
accent
#E7407B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D176A

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

Preview Lab → · Contrast checker → · Palette generator →

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