#4D1676#4D1676

#4D1676 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.152 H 305.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#4D1676
RGBrgb(77, 22, 118)
HSLhsl(274, 69%, 27%)
HSVhsv(274, 81%, 46%)
CMYKcmyk(34.7%, 81.4%, 0%, 53.7%)
CIE-LABlab(21.80, 42.76, -43.48)
CIE-LCHlch(21.80, 60.98, 314.53°)
OKLaboklab(34.53% 0.0885 -0.1238)
OKLCHoklch(34.53% 0.152 305.6)
XYZxyz(6.6168, 3.4597, 17.4552)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1676 #3F7616
analogous
#1D1676 #4D1676 #76166F
triadic
#4D1676 #764D16 #16764D
tetradic
#4D1676 #761D16 #3F7616 #166F76
square
#4D1676 #761D16 #3F7616 #166F76
split-complementary
#4D1676 #6F7616 #16761D
monochromatic
#11051A #2B0C42 #4D1676 #6F20AA #902ED8

Accessibility & contrast

On white

12.41
#4D1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4D1676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1676
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1676#FFFFFF#000000##FFFFFF
##4D16761.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#452F46
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1676;
/* rgb */ color: rgb(77, 22, 118);
/* oklch */ color: oklch(34.5% 0.152 305.6);
Tailwind
colors: {
  custom: {
    50: '#835a9e',
    500: '#4d1676',
    950: '#000000',
  },
}
SCSS
$custom: #4d1676;
$custom-light: #835a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1676",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 274.375,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34526,
    "c": 0.15219,
    "h": 305.6
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#4D1676
secondary
#6CAC3C
accent
#EB3C87
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1676

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

Preview Lab → · Contrast checker → · Palette generator →

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