#4C1581#4C1581

#4C1581 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.164 H 300.9°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#4C1581
RGBrgb(76, 21, 129)
HSLhsl(271, 72%, 29%)
HSVhsv(271, 84%, 51%)
CMYKcmyk(41.1%, 83.7%, 0%, 49.4%)
CIE-LABlab(22.51, 45.68, -49.33)
CIE-LCHlch(22.51, 67.23, 312.80°)
OKLaboklab(35.29% 0.0845 -0.141)
OKLCHoklch(35.29% 0.164 300.9)
XYZxyz(7.2101, 3.6578, 21.0908)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1581 #4A8115
analogous
#161581 #4C1581 #811580
triadic
#4C1581 #814C15 #15814C
tetradic
#4C1581 #811615 #4A8115 #158081
square
#4C1581 #811615 #4A8115 #158081
split-complementary
#4C1581 #808115 #158116
monochromatic
#10041A #2D0C4C #4C1581 #6B1EB6 #8A33DE

Accessibility & contrast

On white

12.13
#4C1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4C1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1581
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1581#FFFFFF#000000##FFFFFF
##4C15811.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#40334C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c1581;
/* rgb */ color: rgb(76, 21, 129);
/* oklch */ color: oklch(35.3% 0.164 300.9);
Tailwind
colors: {
  custom: {
    50: '#845ba6',
    500: '#4c1581',
    950: '#000000',
  },
}
SCSS
$custom: #4c1581;
$custom-light: #845ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1581",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 270.556,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35293,
    "c": 0.16439,
    "h": 300.9
  },
  "luminance": 0.03658
}

Semantic roles & 50–950 ramp

primary
#4C1581
secondary
#78B63C
accent
#EF3992
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4C1581

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

Preview Lab → · Contrast checker → · Palette generator →

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