#4D166D#4D166D

#4D166D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.143 H 309.4°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4D166D
RGBrgb(77, 22, 109)
HSLhsl(278, 66%, 26%)
HSVhsv(278, 80%, 43%)
CMYKcmyk(29.4%, 79.8%, 0%, 57.3%)
CIE-LABlab(21.04, 40.61, -38.90)
CIE-LCHlch(21.04, 56.24, 316.23°)
OKLaboklab(33.76% 0.0907 -0.1104)
OKLCHoklch(33.76% 0.143 309.4)
XYZxyz(6.1072, 3.2558, 14.7717)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D166D #366D16
analogous
#21166D #4D166D #6D1661
triadic
#4D166D #6D4D16 #166D4D
tetradic
#4D166D #6D2116 #366D16 #16616D
square
#4D166D #6D2116 #366D16 #16616D
split-complementary
#4D166D #616D16 #166D21
monochromatic
#120519 #290C3A #4D166D #7120A0 #952BD3

Accessibility & contrast

On white

12.72
#4D166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D166D
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D166D#FFFFFF#000000##FFFFFF
##4D166D1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#482B41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d166d;
/* rgb */ color: rgb(77, 22, 109);
/* oklch */ color: oklch(33.8% 0.143 309.4);
Tailwind
colors: {
  custom: {
    50: '#835a97',
    500: '#4d166d',
    950: '#000000',
  },
}
SCSS
$custom: #4d166d;
$custom-light: #835a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4d166d",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 277.931,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33757,
    "c": 0.14284,
    "h": 309.4
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#4D166D
secondary
#62A33C
accent
#E93E7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D166D

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

Preview Lab → · Contrast checker → · Palette generator →

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