#4C1159#4C1159

#4C1159 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.128 H 319.6°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#4C1159
RGBrgb(76, 17, 89)
HSLhsl(289, 68%, 21%)
HSVhsv(289, 81%, 35%)
CMYKcmyk(14.6%, 80.9%, 0%, 65.1%)
CIE-LABlab(18.62, 37.91, -29.63)
CIE-LCHlch(18.62, 48.12, 321.99°)
OKLaboklab(31.52% 0.0977 -0.0831)
OKLCHoklch(31.52% 0.128 319.6)
XYZxyz(4.9839, 2.6589, 9.7000)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1159 #1E5911
analogous
#281159 #4C1159 #591142
triadic
#4C1159 #594C11 #11594C
tetradic
#4C1159 #592811 #1E5911 #114259
square
#4C1159 #592811 #1E5911 #114259
split-complementary
#4C1159 #425911 #115928
monochromatic
#16051A #200726 #4C1159 #781B8C #A425C0

Accessibility & contrast

On white

13.71
#4C1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1159
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1159#FFFFFF#000000##FFFFFF
##4C11591.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#172F57
Tritanopia (blue-blind)
#4C2034
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c1159;
/* rgb */ color: rgb(76, 17, 89);
/* oklch */ color: oklch(31.5% 0.128 319.6);
Tailwind
colors: {
  custom: {
    50: '#815688',
    500: '#4c1159',
    950: '#000000',
  },
}
SCSS
$custom: #4c1159;
$custom-light: #815688;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1159",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 289.167,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31524,
    "c": 0.12828,
    "h": 319.6
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

primary
#4C1159
secondary
#459234
accent
#EB3D5C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C1159

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

Preview Lab → · Contrast checker → · Palette generator →

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