#4D166F#4D166F

#4D166F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.145 H 308.5°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#4D166F
RGBrgb(77, 22, 111)
HSLhsl(277, 67%, 26%)
HSVhsv(277, 80%, 44%)
CMYKcmyk(30.6%, 80.2%, 0%, 56.5%)
CIE-LABlab(21.21, 41.08, -39.93)
CIE-LCHlch(21.21, 57.29, 315.81°)
OKLaboklab(33.92% 0.0902 -0.1134)
OKLCHoklch(33.92% 0.145 308.5)
XYZxyz(6.2161, 3.2994, 15.3452)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D166F #386F16
analogous
#21166F #4D166F #6F1664
triadic
#4D166F #6F4D16 #166F4D
tetradic
#4D166F #6F2116 #386F16 #16646F
square
#4D166F #6F2116 #386F16 #16646F
split-complementary
#4D166F #646F16 #166F21
monochromatic
#12051A #2A0C3C #4D166F #7020A2 #942BD5

Accessibility & contrast

On white

12.65
#4D166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4D166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D166F
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D166F#FFFFFF#000000##FFFFFF
##4D166F1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#482C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d166f;
/* rgb */ color: rgb(77, 22, 111);
/* oklch */ color: oklch(33.9% 0.145 308.5);
Tailwind
colors: {
  custom: {
    50: '#835a99',
    500: '#4d166f',
    950: '#000000',
  },
}
SCSS
$custom: #4d166f;
$custom-light: #835a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4d166f",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 277.079,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33925,
    "c": 0.14492,
    "h": 308.5
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#4D166F
secondary
#64A53C
accent
#EA3E80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D166F

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

Preview Lab → · Contrast checker → · Palette generator →

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