#4C1157#4C1157

#4C1157 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.126 H 320.8°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#4C1157
RGBrgb(76, 17, 87)
HSLhsl(291, 67%, 20%)
HSVhsv(291, 80%, 34%)
CMYKcmyk(12.6%, 80.5%, 0%, 65.9%)
CIE-LABlab(18.48, 37.49, -28.52)
CIE-LCHlch(18.48, 47.10, 322.74°)
OKLaboklab(31.37% 0.0979 -0.0799)
OKLCHoklch(31.37% 0.126 320.8)
XYZxyz(4.9010, 2.6258, 9.2636)
Luminance0.0263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1157 #1C5711
analogous
#291157 #4C1157 #57113F
triadic
#4C1157 #574C11 #11574C
tetradic
#4C1157 #572911 #1C5711 #113F57
square
#4C1157 #572911 #1C5711 #113F57
split-complementary
#4C1157 #3F5711 #115729
monochromatic
#16051A #1F0724 #4C1157 #791B8A #A525BD

Accessibility & contrast

On white

13.77
#4C1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4C1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1157
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1157#FFFFFF#000000##FFFFFF
##4C11571.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#192F55
Tritanopia (blue-blind)
#4D1F33
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c1157;
/* rgb */ color: rgb(76, 17, 87);
/* oklch */ color: oklch(31.4% 0.126 320.8);
Tailwind
colors: {
  custom: {
    50: '#815687',
    500: '#4c1157',
    950: '#000000',
  },
}
SCSS
$custom: #4c1157;
$custom-light: #815687;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1157",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 290.571,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31375,
    "c": 0.12637,
    "h": 320.8
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#4C1157
secondary
#429034
accent
#EA3E59
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C1157

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

Preview Lab → · Contrast checker → · Palette generator →

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