#4C1167#4C1167

#4C1167 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.6% C 0.142 H 312.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#4C1167
RGBrgb(76, 17, 103)
HSLhsl(281, 72%, 24%)
HSVhsv(281, 83%, 40%)
CMYKcmyk(26.2%, 83.5%, 0%, 59.6%)
CIE-LABlab(19.71, 40.98, -37.16)
CIE-LCHlch(19.71, 55.32, 317.80°)
OKLaboklab(32.63% 0.0952 -0.1052)
OKLCHoklch(32.63% 0.142 312.1)
XYZxyz(5.6287, 2.9168, 13.0958)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1167 #2C6711
analogous
#211167 #4C1167 #671157
triadic
#4C1167 #674C11 #11674C
tetradic
#4C1167 #672111 #2C6711 #115767
square
#4C1167 #672111 #2C6711 #115767
split-complementary
#4C1167 #576711 #116721
monochromatic
#13041A #250832 #4C1167 #731A9C #9A22D0

Accessibility & contrast

On white

13.26
#4C1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4C1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1167
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1167#FFFFFF#000000##FFFFFF
##4C11671.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#013165
Tritanopia (blue-blind)
#49263C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c1167;
/* rgb */ color: rgb(76, 17, 103);
/* oklch */ color: oklch(32.6% 0.142 312.1);
Tailwind
colors: {
  custom: {
    50: '#825793',
    500: '#4c1167',
    950: '#000000',
  },
}
SCSS
$custom: #4c1167;
$custom-light: #825793;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1167",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 281.163,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32633,
    "c": 0.14192,
    "h": 312.1
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#4C1167
secondary
#569F35
accent
#EE3972
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B030D
muted
#7C787E

Preview Lab

Preview with #4C1167

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

Preview Lab → · Contrast checker → · Palette generator →

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