#4D166A#4D166A

#4D166A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.140 H 310.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#4D166A
RGBrgb(77, 22, 106)
HSLhsl(279, 66%, 25%)
HSVhsv(279, 79%, 42%)
CMYKcmyk(27.4%, 79.2%, 0%, 58.4%)
CIE-LABlab(20.80, 39.90, -37.35)
CIE-LCHlch(20.80, 54.65, 316.90°)
OKLaboklab(33.51% 0.0913 -0.1058)
OKLCHoklch(33.51% 0.14 310.8)
XYZxyz(5.9485, 3.1923, 13.9357)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D166A #336A16
analogous
#23166A #4D166A #6A165D
triadic
#4D166A #6A4D16 #166A4D
tetradic
#4D166A #6A2316 #336A16 #165D6A
square
#4D166A #6A2316 #336A16 #165D6A
split-complementary
#4D166A #5D6A16 #166A23
monochromatic
#120519 #280B37 #4D166A #72219D #972BCF

Accessibility & contrast

On white

12.82
#4D166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4D166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D166A
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D166A#FFFFFF#000000##FFFFFF
##4D166A1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#043368
Tritanopia (blue-blind)
#492A3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d166a;
/* rgb */ color: rgb(77, 22, 106);
/* oklch */ color: oklch(33.5% 0.140 310.8);
Tailwind
colors: {
  custom: {
    50: '#825a95',
    500: '#4d166a',
    950: '#000000',
  },
}
SCSS
$custom: #4d166a;
$custom-light: #825a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4d166a",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 279.286,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3351,
    "c": 0.13974,
    "h": 310.8
  },
  "luminance": 0.03192
}

Semantic roles & 50–950 ramp

primary
#4D166A
secondary
#5EA03B
accent
#E93F7A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D166A

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

Preview Lab → · Contrast checker → · Palette generator →

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