#4C1166#4C1166

#4C1166 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.6% C 0.141 H 312.6°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#4C1166
RGBrgb(76, 17, 102)
HSLhsl(282, 71%, 23%)
HSVhsv(282, 83%, 40%)
CMYKcmyk(25.5%, 83.3%, 0%, 60%)
CIE-LABlab(19.63, 40.75, -36.63)
CIE-LCHlch(19.63, 54.80, 318.05°)
OKLaboklab(32.55% 0.0954 -0.1037)
OKLCHoklch(32.55% 0.141 312.6)
XYZxyz(5.5788, 2.8969, 12.8331)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1166 #2B6611
analogous
#211166 #4C1166 #661155
triadic
#4C1166 #664C11 #11664C
tetradic
#4C1166 #662111 #2B6611 #115566
square
#4C1166 #662111 #2B6611 #115566
split-complementary
#4C1166 #556611 #116621
monochromatic
#14041A #250832 #4C1166 #731A9A #9A22CF

Accessibility & contrast

On white

13.30
#4C1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4C1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1166
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1166#FFFFFF#000000##FFFFFF
##4C11661.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#043164
Tritanopia (blue-blind)
#49263C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c1166;
/* rgb */ color: rgb(76, 17, 102);
/* oklch */ color: oklch(32.6% 0.141 312.6);
Tailwind
colors: {
  custom: {
    50: '#825792',
    500: '#4c1166',
    950: '#000000',
  },
}
SCSS
$custom: #4c1166;
$custom-light: #825792;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1166",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 281.647,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.3255,
    "c": 0.14094,
    "h": 312.6
  },
  "luminance": 0.02897
}

Semantic roles & 50–950 ramp

primary
#4C1166
secondary
#559E35
accent
#EE3A71
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B030D
muted
#7C787E

Preview Lab

Preview with #4C1166

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

Preview Lab → · Contrast checker → · Palette generator →

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