#4C1158#4C1158

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

Color values

HEX#4C1158
RGBrgb(76, 17, 88)
HSLhsl(290, 68%, 21%)
HSVhsv(290, 81%, 35%)
CMYKcmyk(13.6%, 80.7%, 0%, 65.5%)
CIE-LABlab(18.55, 37.70, -29.08)
CIE-LCHlch(18.55, 47.61, 322.36°)
OKLaboklab(31.45% 0.0978 -0.0815)
OKLCHoklch(31.45% 0.127 320.2)
XYZxyz(4.9422, 2.6422, 9.4803)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1158 #1D5811
analogous
#281158 #4C1158 #581140
triadic
#4C1158 #584C11 #11584C
tetradic
#4C1158 #582811 #1D5811 #114058
square
#4C1158 #582811 #1D5811 #114058
split-complementary
#4C1158 #405811 #115828
monochromatic
#16051A #200725 #4C1158 #781B8B #A525BF

Accessibility & contrast

On white

13.74
#4C1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1158
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1158#FFFFFF#000000##FFFFFF
##4C11581.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#182F56
Tritanopia (blue-blind)
#4C1F34
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c1158;
/* rgb */ color: rgb(76, 17, 88);
/* oklch */ color: oklch(31.4% 0.127 320.2);
Tailwind
colors: {
  custom: {
    50: '#815687',
    500: '#4c1158',
    950: '#000000',
  },
}
SCSS
$custom: #4c1158;
$custom-light: #815687;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1158",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 289.859,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31449,
    "c": 0.12732,
    "h": 320.2
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#4C1158
secondary
#449134
accent
#EA3D5B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C1158

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

Preview Lab → · Contrast checker → · Palette generator →

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