#4C166D#4C166D

#4C166D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.143 H 308.7°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#4C166D
RGBrgb(76, 22, 109)
HSLhsl(277, 66%, 26%)
HSVhsv(277, 80%, 43%)
CMYKcmyk(30.3%, 79.8%, 0%, 57.3%)
CIE-LABlab(20.88, 40.41, -39.17)
CIE-LCHlch(20.88, 56.27, 315.89°)
OKLaboklab(33.61% 0.0892 -0.1112)
OKLCHoklch(33.61% 0.143 308.7)
XYZxyz(6.0272, 3.2146, 14.7680)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C166D #376D16
analogous
#20166D #4C166D #6D1662
triadic
#4C166D #6D4C16 #166D4C
tetradic
#4C166D #6D2016 #376D16 #16626D
square
#4C166D #6D2016 #376D16 #16626D
split-complementary
#4C166D #626D16 #166D20
monochromatic
#120519 #280C3A #4C166D #7020A0 #932BD3

Accessibility & contrast

On white

12.78
#4C166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C166D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C166D#FFFFFF#000000##FFFFFF
##4C166D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c166d;
/* rgb */ color: rgb(76, 22, 109);
/* oklch */ color: oklch(33.6% 0.143 308.7);
Tailwind
colors: {
  custom: {
    50: '#825a97',
    500: '#4c166d',
    950: '#000000',
  },
}
SCSS
$custom: #4c166d;
$custom-light: #825a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4c166d",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 277.241,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33614,
    "c": 0.14254,
    "h": 308.7
  },
  "luminance": 0.03214
}

Semantic roles & 50–950 ramp

primary
#4C166D
secondary
#63A33C
accent
#E93E7F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C166D

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

Preview Lab → · Contrast checker → · Palette generator →

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