#4D166C#4D166C

#4D166C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.142 H 309.9°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#4D166C
RGBrgb(77, 22, 108)
HSLhsl(278, 66%, 25%)
HSVhsv(278, 80%, 42%)
CMYKcmyk(28.7%, 79.6%, 0%, 57.6%)
CIE-LABlab(20.96, 40.37, -38.39)
CIE-LCHlch(20.96, 55.71, 316.44°)
OKLaboklab(33.67% 0.0909 -0.1088)
OKLCHoklch(33.67% 0.142 309.9)
XYZxyz(6.0537, 3.2344, 14.4899)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D166C #356C16
analogous
#22166C #4D166C #6C1660
triadic
#4D166C #6C4D16 #166C4D
tetradic
#4D166C #6C2216 #356C16 #16606C
square
#4D166C #6C2216 #356C16 #16606C
split-complementary
#4D166C #606C16 #166C22
monochromatic
#120519 #290C39 #4D166C #71209F #952BD2

Accessibility & contrast

On white

12.75
#4D166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4D166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D166C
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D166C#FFFFFF#000000##FFFFFF
##4D166C1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#492B40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d166c;
/* rgb */ color: rgb(77, 22, 108);
/* oklch */ color: oklch(33.7% 0.142 309.9);
Tailwind
colors: {
  custom: {
    50: '#835a97',
    500: '#4d166c',
    950: '#000000',
  },
}
SCSS
$custom: #4d166c;
$custom-light: #835a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4d166c",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 278.372,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33674,
    "c": 0.14181,
    "h": 309.9
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#4D166C
secondary
#61A23C
accent
#E93F7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D166C

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

Preview Lab → · Contrast checker → · Palette generator →

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