#4C1580#4C1580

#4C1580 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.163 H 301.3°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4C1580
RGBrgb(76, 21, 128)
HSLhsl(271, 72%, 29%)
HSVhsv(271, 84%, 50%)
CMYKcmyk(40.6%, 83.6%, 0%, 49.8%)
CIE-LABlab(22.41, 45.44, -48.85)
CIE-LCHlch(22.41, 66.71, 312.93°)
OKLaboklab(35.2% 0.0848 -0.1396)
OKLCHoklch(35.2% 0.163 301.3)
XYZxyz(7.1440, 3.6313, 20.7424)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1580 #498015
analogous
#171580 #4C1580 #80157F
triadic
#4C1580 #804C15 #15804C
tetradic
#4C1580 #801715 #498015 #157F80
square
#4C1580 #801715 #498015 #157F80
split-complementary
#4C1580 #7F8015 #158017
monochromatic
#10041A #2D0C4B #4C1580 #6B1EB5 #8A32DD

Accessibility & contrast

On white

12.17
#4C1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1580
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1580#FFFFFF#000000##FFFFFF
##4C15801.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#40334B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c1580;
/* rgb */ color: rgb(76, 21, 128);
/* oklch */ color: oklch(35.2% 0.163 301.3);
Tailwind
colors: {
  custom: {
    50: '#845aa6',
    500: '#4c1580',
    950: '#000000',
  },
}
SCSS
$custom: #4c1580;
$custom-light: #845aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1580",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 270.841,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.352,
    "c": 0.16335,
    "h": 301.3
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#4C1580
secondary
#77B53C
accent
#EF3991
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1580

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

Preview Lab → · Contrast checker → · Palette generator →

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