#4C166A#4C166A

#4C166A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.139 H 310.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#4C166A
RGBrgb(76, 22, 106)
HSLhsl(279, 66%, 25%)
HSVhsv(279, 79%, 42%)
CMYKcmyk(28.3%, 79.2%, 0%, 58.4%)
CIE-LABlab(20.64, 39.69, -37.61)
CIE-LCHlch(20.64, 54.68, 316.54°)
OKLaboklab(33.37% 0.0898 -0.1066)
OKLCHoklch(33.37% 0.139 310.1)
XYZxyz(5.8684, 3.1511, 13.9319)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C166A #346A16
analogous
#22166A #4C166A #6A165E
triadic
#4C166A #6A4C16 #166A4C
tetradic
#4C166A #6A2216 #346A16 #165E6A
square
#4C166A #6A2216 #346A16 #165E6A
split-complementary
#4C166A #5E6A16 #166A22
monochromatic
#120519 #280B37 #4C166A #70219D #952BCF

Accessibility & contrast

On white

12.88
#4C166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4C166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C166A
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C166A#FFFFFF#000000##FFFFFF
##4C166A1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#023268
Tritanopia (blue-blind)
#482A3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c166a;
/* rgb */ color: rgb(76, 22, 106);
/* oklch */ color: oklch(33.4% 0.139 310.1);
Tailwind
colors: {
  custom: {
    50: '#825a95',
    500: '#4c166a',
    950: '#000000',
  },
}
SCSS
$custom: #4c166a;
$custom-light: #825a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4c166a",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 278.571,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33365,
    "c": 0.13942,
    "h": 310.1
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#4C166A
secondary
#5FA03B
accent
#E93F7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C166A

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

Preview Lab → · Contrast checker → · Palette generator →

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