#4C1481#4C1481

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

Color values

HEX#4C1481
RGBrgb(76, 20, 129)
HSLhsl(271, 73%, 29%)
HSVhsv(271, 84%, 51%)
CMYKcmyk(41.1%, 84.5%, 0%, 49.4%)
CIE-LABlab(22.38, 46.06, -49.54)
CIE-LCHlch(22.38, 67.64, 312.91°)
OKLaboklab(35.21% 0.0852 -0.1416)
OKLCHoklch(35.21% 0.165 301)
XYZxyz(7.1921, 3.6217, 21.0848)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1481 #498114
analogous
#161481 #4C1481 #811480
triadic
#4C1481 #814C14 #14814C
tetradic
#4C1481 #811614 #498114 #148081
square
#4C1481 #811614 #498114 #148081
split-complementary
#4C1481 #808114 #148116
monochromatic
#10041A #2D0C4C #4C1481 #6B1CB6 #8A30DF

Accessibility & contrast

On white

12.18
#4C1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1481
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1481#FFFFFF#000000##FFFFFF
##4C14811.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1481;
/* rgb */ color: rgb(76, 20, 129);
/* oklch */ color: oklch(35.2% 0.165 301.0);
Tailwind
colors: {
  custom: {
    50: '#845aa7',
    500: '#4c1481',
    950: '#000000',
  },
}
SCSS
$custom: #4c1481;
$custom-light: #845aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1481",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 270.826,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35205,
    "c": 0.16529,
    "h": 301
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#4C1481
secondary
#77B63B
accent
#F03891
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4C1481

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

Preview Lab → · Contrast checker → · Palette generator →

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