#4C166C#4C166C

#4C166C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.141 H 309.2°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#4C166C
RGBrgb(76, 22, 108)
HSLhsl(278, 66%, 25%)
HSVhsv(278, 80%, 42%)
CMYKcmyk(29.6%, 79.6%, 0%, 57.6%)
CIE-LABlab(20.80, 40.17, -38.65)
CIE-LCHlch(20.80, 55.74, 316.10°)
OKLaboklab(33.53% 0.0894 -0.1097)
OKLCHoklch(33.53% 0.142 309.2)
XYZxyz(5.9736, 3.1931, 14.4861)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C166C #366C16
analogous
#21166C #4C166C #6C1661
triadic
#4C166C #6C4C16 #166C4C
tetradic
#4C166C #6C2116 #366C16 #16616C
square
#4C166C #6C2116 #366C16 #16616C
split-complementary
#4C166C #616C16 #166C21
monochromatic
#120519 #280C39 #4C166C #70209F #942BD2

Accessibility & contrast

On white

12.82
#4C166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C166C
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C166C#FFFFFF#000000##FFFFFF
##4C166C1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c166c;
/* rgb */ color: rgb(76, 22, 108);
/* oklch */ color: oklch(33.5% 0.141 309.2);
Tailwind
colors: {
  custom: {
    50: '#825a97',
    500: '#4c166c',
    950: '#000000',
  },
}
SCSS
$custom: #4c166c;
$custom-light: #825a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4c166c",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 277.674,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3353,
    "c": 0.1415,
    "h": 309.2
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#4C166C
secondary
#62A23C
accent
#E93F7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C166C

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

Preview Lab → · Contrast checker → · Palette generator →

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