#4C1154#4C1154

#4C1154 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.2% C 0.124 H 322.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#4C1154
RGBrgb(76, 17, 84)
HSLhsl(293, 66%, 20%)
HSVhsv(293, 80%, 33%)
CMYKcmyk(9.5%, 79.8%, 0%, 67.1%)
CIE-LABlab(18.27, 36.87, -26.83)
CIE-LCHlch(18.27, 45.60, 323.95°)
OKLaboklab(31.16% 0.0982 -0.075)
OKLCHoklch(31.16% 0.124 322.6)
XYZxyz(4.7810, 2.5778, 8.6315)
Luminance0.0258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1154 #195411
analogous
#2B1154 #4C1154 #54113B
triadic
#4C1154 #544C11 #11544C
tetradic
#4C1154 #542B11 #195411 #113B54
square
#4C1154 #542B11 #195411 #113B54
split-complementary
#4C1154 #3B5411 #11542B
monochromatic
#170519 #1E0721 #4C1154 #7A1B87 #A826BA

Accessibility & contrast

On white

13.86
#4C1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1154
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1154#FFFFFF#000000##FFFFFF
##4C11541.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#1B2F52
Tritanopia (blue-blind)
#4D1E31
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c1154;
/* rgb */ color: rgb(76, 17, 84);
/* oklch */ color: oklch(31.2% 0.124 322.6);
Tailwind
colors: {
  custom: {
    50: '#815684',
    500: '#4c1154',
    950: '#000000',
  },
}
SCSS
$custom: #4c1154;
$custom-light: #815684;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1154",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 292.836,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31157,
    "c": 0.12351,
    "h": 322.6
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#4C1154
secondary
#3E8D34
accent
#E93F53
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C1154

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

Preview Lab → · Contrast checker → · Palette generator →

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