#4C166F#4C166F

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

Color values

HEX#4C166F
RGBrgb(76, 22, 111)
HSLhsl(276, 67%, 26%)
HSVhsv(276, 80%, 44%)
CMYKcmyk(31.5%, 80.2%, 0%, 56.5%)
CIE-LABlab(21.05, 40.88, -40.19)
CIE-LCHlch(21.05, 57.33, 315.49°)
OKLaboklab(33.78% 0.0888 -0.1142)
OKLCHoklch(33.78% 0.145 307.9)
XYZxyz(6.1360, 3.2581, 15.3415)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C166F #396F16
analogous
#1F166F #4C166F #6F1665
triadic
#4C166F #6F4C16 #166F4C
tetradic
#4C166F #6F1F16 #396F16 #16656F
square
#4C166F #6F1F16 #396F16 #16656F
split-complementary
#4C166F #656F16 #166F1F
monochromatic
#11051A #290C3C #4C166F #6F20A2 #922BD5

Accessibility & contrast

On white

12.71
#4C166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C166F
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C166F#FFFFFF#000000##FFFFFF
##4C166F1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c166f;
/* rgb */ color: rgb(76, 22, 111);
/* oklch */ color: oklch(33.8% 0.145 307.9);
Tailwind
colors: {
  custom: {
    50: '#825a99',
    500: '#4c166f',
    950: '#000000',
  },
}
SCSS
$custom: #4c166f;
$custom-light: #825a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4c166f",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 276.404,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33782,
    "c": 0.14463,
    "h": 307.9
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#4C166F
secondary
#65A53C
accent
#EA3E82
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C166F

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

Preview Lab → · Contrast checker → · Palette generator →

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