#4C1162#4C1162

#4C1162 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.137 H 314.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#4C1162
RGBrgb(76, 17, 98)
HSLhsl(284, 70%, 23%)
HSVhsv(284, 83%, 38%)
CMYKcmyk(22.4%, 82.7%, 0%, 61.6%)
CIE-LABlab(19.31, 39.86, -34.52)
CIE-LCHlch(19.31, 52.73, 319.11°)
OKLaboklab(32.22% 0.0963 -0.0975)
OKLCHoklch(32.22% 0.137 314.6)
XYZxyz(5.3852, 2.8194, 11.8134)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1162 #276211
analogous
#241162 #4C1162 #62114F
triadic
#4C1162 #624C11 #11624C
tetradic
#4C1162 #622411 #276211 #114F62
square
#4C1162 #622411 #276211 #114F62
split-complementary
#4C1162 #4F6211 #116224
monochromatic
#14051A #24082E #4C1162 #741A96 #9D23CA

Accessibility & contrast

On white

13.43
#4C1162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4C1162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1162
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1162#FFFFFF#000000##FFFFFF
##4C11621.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#0C3060
Tritanopia (blue-blind)
#4A2439
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c1162;
/* rgb */ color: rgb(76, 17, 98);
/* oklch */ color: oklch(32.2% 0.137 314.6);
Tailwind
colors: {
  custom: {
    50: '#81578f',
    500: '#4c1162',
    950: '#000000',
  },
}
SCSS
$custom: #4c1162;
$custom-light: #81578f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1162",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 283.704,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32224,
    "c": 0.13701,
    "h": 314.6
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#4C1162
secondary
#509A34
accent
#ED3B6B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C1162

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

Preview Lab → · Contrast checker → · Palette generator →

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