#4D1677#4D1677

#4D1677 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.153 H 305.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#4D1677
RGBrgb(77, 22, 119)
HSLhsl(274, 69%, 28%)
HSVhsv(274, 82%, 47%)
CMYKcmyk(35.3%, 81.5%, 0%, 53.3%)
CIE-LABlab(21.89, 43.01, -43.98)
CIE-LCHlch(21.89, 61.51, 314.36°)
OKLaboklab(34.61% 0.0882 -0.1253)
OKLCHoklch(34.61% 0.153 305.2)
XYZxyz(6.6765, 3.4836, 17.7698)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1677 #407716
analogous
#1D1677 #4D1677 #771670
triadic
#4D1677 #774D16 #16774D
tetradic
#4D1677 #771D16 #407716 #167077
square
#4D1677 #771D16 #407716 #167077
split-complementary
#4D1677 #707716 #16771D
monochromatic
#11051A #2C0C43 #4D1677 #6E20AB #8F2FD9

Accessibility & contrast

On white

12.38
#4D1677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4D1677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1677
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1677#FFFFFF#000000##FFFFFF
##4D16771.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#452F46
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1677;
/* rgb */ color: rgb(77, 22, 119);
/* oklch */ color: oklch(34.6% 0.153 305.2);
Tailwind
colors: {
  custom: {
    50: '#845a9f',
    500: '#4d1677',
    950: '#000000',
  },
}
SCSS
$custom: #4d1677;
$custom-light: #845a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1677",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 274.021,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34613,
    "c": 0.15322,
    "h": 305.2
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#4D1677
secondary
#6DAC3C
accent
#EC3C88
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4D1677

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

Preview Lab → · Contrast checker → · Palette generator →

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