#4D176E#4D176E

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

Color values

HEX#4D176E
RGBrgb(77, 23, 110)
HSLhsl(277, 65%, 26%)
HSVhsv(277, 79%, 43%)
CMYKcmyk(30%, 79.1%, 0%, 56.9%)
CIE-LABlab(21.27, 40.42, -39.18)
CIE-LCHlch(21.27, 56.30, 315.89°)
OKLaboklab(33.94% 0.0895 -0.1112)
OKLCHoklch(33.94% 0.143 308.8)
XYZxyz(6.1809, 3.3165, 15.0634)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D176E #386E17
analogous
#21176E #4D176E #6E1763
triadic
#4D176E #6E4D17 #176E4D
tetradic
#4D176E #6E2117 #386E17 #17636E
square
#4D176E #6E2117 #386E17 #17636E
split-complementary
#4D176E #636E17 #176E21
monochromatic
#120519 #2A0C3B #4D176E #7022A1 #942CD3

Accessibility & contrast

On white

12.63
#4D176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D176E
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D176E#FFFFFF#000000##FFFFFF
##4D176E1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#482C41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d176e;
/* rgb */ color: rgb(77, 23, 110);
/* oklch */ color: oklch(33.9% 0.143 308.8);
Tailwind
colors: {
  custom: {
    50: '#835a98',
    500: '#4d176e',
    950: '#000000',
  },
}
SCSS
$custom: #4d176e;
$custom-light: #835a98;
$custom-dark: #000000;
JSON
{
  "hex": "#4d176e",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 277.241,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33944,
    "c": 0.14272,
    "h": 308.8
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#4D176E
secondary
#64A43D
accent
#E83F80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D176E

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

Preview Lab → · Contrast checker → · Palette generator →

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