#4D176D#4D176D

#4D176D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.142 H 309.3°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#4D176D
RGBrgb(77, 23, 109)
HSLhsl(278, 65%, 26%)
HSVhsv(278, 79%, 43%)
CMYKcmyk(29.4%, 78.9%, 0%, 57.3%)
CIE-LABlab(21.19, 40.19, -38.66)
CIE-LCHlch(21.19, 55.77, 316.10°)
OKLaboklab(33.86% 0.0897 -0.1097)
OKLCHoklch(33.86% 0.142 309.3)
XYZxyz(6.1267, 3.2948, 14.7782)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D176D #376D17
analogous
#22176D #4D176D #6D1762
triadic
#4D176D #6D4D17 #176D4D
tetradic
#4D176D #6D2217 #376D17 #17626D
square
#4D176D #6D2217 #376D17 #17626D
split-complementary
#4D176D #626D17 #176D22
monochromatic
#120519 #290C3A #4D176D #7122A0 #942CD2

Accessibility & contrast

On white

12.66
#4D176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4D176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D176D
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D176D#FFFFFF#000000##FFFFFF
##4D176D1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#00346B
Tritanopia (blue-blind)
#482C41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d176d;
/* rgb */ color: rgb(77, 23, 109);
/* oklch */ color: oklch(33.9% 0.142 309.3);
Tailwind
colors: {
  custom: {
    50: '#835a97',
    500: '#4d176d',
    950: '#000000',
  },
}
SCSS
$custom: #4d176d;
$custom-light: #835a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4d176d",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 277.674,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33861,
    "c": 0.14168,
    "h": 309.3
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#4D176D
secondary
#63A33D
accent
#E8407E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D176D

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

Preview Lab → · Contrast checker → · Palette generator →

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