#4D2177#4D2177

#4D2177 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.140 H 303.4°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4D2177
RGBrgb(77, 33, 119)
HSLhsl(271, 57%, 30%)
HSVhsv(271, 72%, 47%)
CMYKcmyk(35.3%, 72.3%, 0%, 53.3%)
CIE-LABlab(23.66, 37.96, -41.09)
CIE-LCHlch(23.66, 55.94, 312.73°)
OKLaboklab(35.87% 0.0771 -0.1169)
OKLCHoklch(35.87% 0.14 303.4)
XYZxyz(6.9334, 3.9974, 17.8555)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2177 #4B7721
analogous
#222177 #4D2177 #772176
triadic
#4D2177 #774D21 #21774D
tetradic
#4D2177 #772221 #4B7721 #217677
square
#4D2177 #772221 #4B7721 #217677
split-complementary
#4D2177 #767721 #217722
monochromatic
#100718 #2E1447 #4D2177 #6C2EA7 #8B47CC

Accessibility & contrast

On white

11.67
#4D2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2177
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2177#FFFFFF#000000##FFFFFF
##4D21771.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#003875
Tritanopia (blue-blind)
#453549
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d2177;
/* rgb */ color: rgb(77, 33, 119);
/* oklch */ color: oklch(35.9% 0.140 303.4);
Tailwind
colors: {
  custom: {
    50: '#83609f',
    500: '#4d2177',
    950: '#000000',
  },
}
SCSS
$custom: #4d2177;
$custom-light: #83609f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2177",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 270.698,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3587,
    "c": 0.14,
    "h": 303.4
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#4D2177
secondary
#79AA4A
accent
#E04892
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D2177

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

Preview Lab → · Contrast checker → · Palette generator →

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