#4C1156#4C1156

#4C1156 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.3% C 0.125 H 321.4°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#4C1156
RGBrgb(76, 17, 86)
HSLhsl(291, 67%, 20%)
HSVhsv(291, 80%, 34%)
CMYKcmyk(11.6%, 80.2%, 0%, 66.3%)
CIE-LABlab(18.41, 37.28, -27.96)
CIE-LCHlch(18.41, 46.60, 323.13°)
OKLaboklab(31.3% 0.098 -0.0783)
OKLCHoklch(31.3% 0.125 321.4)
XYZxyz(4.8605, 2.6096, 9.0500)
Luminance0.0261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1156 #1B5611
analogous
#291156 #4C1156 #56113E
triadic
#4C1156 #564C11 #11564C
tetradic
#4C1156 #562911 #1B5611 #113E56
square
#4C1156 #562911 #1B5611 #113E56
split-complementary
#4C1156 #3E5611 #115629
monochromatic
#17051A #1F0723 #4C1156 #791B89 #A625BC

Accessibility & contrast

On white

13.80
#4C1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4C1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1156
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1156#FFFFFF#000000##FFFFFF
##4C11561.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#1A2F54
Tritanopia (blue-blind)
#4D1E33
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c1156;
/* rgb */ color: rgb(76, 17, 86);
/* oklch */ color: oklch(31.3% 0.125 321.4);
Tailwind
colors: {
  custom: {
    50: '#815686',
    500: '#4c1156',
    950: '#000000',
  },
}
SCSS
$custom: #4c1156;
$custom-light: #815686;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1156",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 291.304,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31302,
    "c": 0.12541,
    "h": 321.4
  },
  "luminance": 0.02609
}

Semantic roles & 50–950 ramp

primary
#4C1156
secondary
#418F34
accent
#EA3E57
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C1156

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

Preview Lab → · Contrast checker → · Palette generator →

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