#4C1161#4C1161

#4C1161 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.136 H 315.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#4C1161
RGBrgb(76, 17, 97)
HSLhsl(284, 70%, 22%)
HSVhsv(284, 82%, 38%)
CMYKcmyk(21.6%, 82.5%, 0%, 62%)
CIE-LABlab(19.23, 39.64, -33.98)
CIE-LCHlch(19.23, 52.21, 319.39°)
OKLaboklab(32.14% 0.0965 -0.0959)
OKLCHoklch(32.14% 0.136 315.2)
XYZxyz(5.3383, 2.8007, 11.5663)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1161 #266111
analogous
#241161 #4C1161 #61114E
triadic
#4C1161 #614C11 #11614C
tetradic
#4C1161 #612411 #266111 #114E61
square
#4C1161 #612411 #266111 #114E61
split-complementary
#4C1161 #4E6111 #116124
monochromatic
#14051A #23082D #4C1161 #751A95 #9E23C9

Accessibility & contrast

On white

13.46
#4C1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4C1161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1161
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1161#FFFFFF#000000##FFFFFF
##4C11611.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#0D305F
Tritanopia (blue-blind)
#4A2339
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c1161;
/* rgb */ color: rgb(76, 17, 97);
/* oklch */ color: oklch(32.1% 0.136 315.2);
Tailwind
colors: {
  custom: {
    50: '#81578e',
    500: '#4c1161',
    950: '#000000',
  },
}
SCSS
$custom: #4c1161;
$custom-light: #81578e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1161",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 284.25,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32143,
    "c": 0.13604,
    "h": 315.2
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#4C1161
secondary
#4F9934
accent
#ED3B6A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C1161

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

Preview Lab → · Contrast checker → · Palette generator →

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