#4C1480#4C1480

#4C1480 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.164 H 301.4°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4C1480
RGBrgb(76, 20, 128)
HSLhsl(271, 73%, 29%)
HSVhsv(271, 84%, 50%)
CMYKcmyk(40.6%, 84.4%, 0%, 49.8%)
CIE-LABlab(22.29, 45.81, -49.06)
CIE-LCHlch(22.29, 67.12, 313.04°)
OKLaboklab(35.11% 0.0855 -0.1402)
OKLCHoklch(35.11% 0.164 301.4)
XYZxyz(7.1260, 3.5953, 20.7364)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1480 #488014
analogous
#161480 #4C1480 #80147E
triadic
#4C1480 #804C14 #14804C
tetradic
#4C1480 #801614 #488014 #147E80
square
#4C1480 #801614 #488014 #147E80
split-complementary
#4C1480 #7E8014 #148016
monochromatic
#10041A #2D0C4B #4C1480 #6B1CB5 #8A30DF

Accessibility & contrast

On white

12.22
#4C1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4C1480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1480
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1480#FFFFFF#000000##FFFFFF
##4C14801.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1480;
/* rgb */ color: rgb(76, 20, 128);
/* oklch */ color: oklch(35.1% 0.164 301.4);
Tailwind
colors: {
  custom: {
    50: '#845aa6',
    500: '#4c1480',
    950: '#000000',
  },
}
SCSS
$custom: #4c1480;
$custom-light: #845aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1480",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 271.111,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35112,
    "c": 0.16425,
    "h": 301.4
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#4C1480
secondary
#76B53B
accent
#F03891
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1480

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

Preview Lab → · Contrast checker → · Palette generator →

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