#4C1152#4C1152

#4C1152 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.0% C 0.122 H 323.9°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#4C1152
RGBrgb(76, 17, 82)
HSLhsl(294, 66%, 19%)
HSVhsv(294, 79%, 32%)
CMYKcmyk(7.3%, 79.3%, 0%, 67.8%)
CIE-LABlab(18.13, 36.46, -25.70)
CIE-LCHlch(18.13, 44.61, 324.82°)
OKLaboklab(31.01% 0.0983 -0.0717)
OKLCHoklch(31.01% 0.122 323.9)
XYZxyz(4.7038, 2.5469, 8.2248)
Luminance0.0255 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1152 #175211
analogous
#2C1152 #4C1152 #521138
triadic
#4C1152 #524C11 #11524C
tetradic
#4C1152 #522C11 #175211 #113852
square
#4C1152 #522C11 #175211 #113852
split-complementary
#4C1152 #385211 #11522C
monochromatic
#170519 #1D061F #4C1152 #7B1C85 #AA26B7

Accessibility & contrast

On white

13.91
#4C1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4C1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1152
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1152#FFFFFF#000000##FFFFFF
##4C11521.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#1D2F50
Tritanopia (blue-blind)
#4E1D30
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c1152;
/* rgb */ color: rgb(76, 17, 82);
/* oklch */ color: oklch(31.0% 0.122 323.9);
Tailwind
colors: {
  custom: {
    50: '#815683',
    500: '#4c1152',
    950: '#000000',
  },
}
SCSS
$custom: #4c1152;
$custom-light: #815683;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1152",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 294.462,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31015,
    "c": 0.12163,
    "h": 323.9
  },
  "luminance": 0.02547
}

Semantic roles & 50–950 ramp

primary
#4C1152
secondary
#3C8B34
accent
#E93F4F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C1152

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

Preview Lab → · Contrast checker → · Palette generator →

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