#4D176F#4D176F

#4D176F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.144 H 308.4°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#4D176F
RGBrgb(77, 23, 111)
HSLhsl(277, 66%, 26%)
HSVhsv(277, 79%, 44%)
CMYKcmyk(30.6%, 79.3%, 0%, 56.5%)
CIE-LABlab(21.35, 40.66, -39.70)
CIE-LCHlch(21.35, 56.83, 315.69°)
OKLaboklab(34.03% 0.0893 -0.1127)
OKLCHoklch(34.03% 0.144 308.4)
XYZxyz(6.2356, 3.3384, 15.3517)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D176F #396F17
analogous
#21176F #4D176F #6F1765
triadic
#4D176F #6F4D17 #176F4D
tetradic
#4D176F #6F2117 #396F17 #17656F
square
#4D176F #6F2117 #396F17 #17656F
split-complementary
#4D176F #656F17 #176F21
monochromatic
#120519 #2A0C3C #4D176F #7022A2 #932DD3

Accessibility & contrast

On white

12.59
#4D176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4D176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D176F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D176F#FFFFFF#000000##FFFFFF
##4D176F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#482C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d176f;
/* rgb */ color: rgb(77, 23, 111);
/* oklch */ color: oklch(34.0% 0.144 308.4);
Tailwind
colors: {
  custom: {
    50: '#835b99',
    500: '#4d176f',
    950: '#000000',
  },
}
SCSS
$custom: #4d176f;
$custom-light: #835b99;
$custom-dark: #000000;
JSON
{
  "hex": "#4d176f",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 276.818,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34027,
    "c": 0.14378,
    "h": 308.4
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#4D176F
secondary
#65A53D
accent
#E93F81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D176F

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

Preview Lab → · Contrast checker → · Palette generator →

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