#4C1081#4C1081

#4C1081 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.169 H 301.4°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#4C1081
RGBrgb(76, 16, 129)
HSLhsl(272, 78%, 28%)
HSVhsv(272, 88%, 51%)
CMYKcmyk(41.1%, 87.6%, 0%, 49.4%)
CIE-LABlab(21.92, 47.42, -50.30)
CIE-LCHlch(21.92, 69.13, 313.31°)
OKLaboklab(34.89% 0.088 -0.1438)
OKLCHoklch(34.89% 0.169 301.4)
XYZxyz(7.1273, 3.4920, 21.0632)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1081 #458110
analogous
#131081 #4C1081 #81107D
triadic
#4C1081 #814C10 #10814C
tetradic
#4C1081 #811310 #458110 #107D81
square
#4C1081 #811310 #458110 #107D81
split-complementary
#4C1081 #7D8110 #108113
monochromatic
#10031B #2C094B #4C1081 #6C17B7 #8C27E4

Accessibility & contrast

On white

12.36
#4C1081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4C1081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1081
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1081#FFFFFF#000000##FFFFFF
##4C10811.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#40324B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1081;
/* rgb */ color: rgb(76, 16, 129);
/* oklch */ color: oklch(34.9% 0.169 301.4);
Tailwind
colors: {
  custom: {
    50: '#8459a7',
    500: '#4c1081',
    950: '#000000',
  },
}
SCSS
$custom: #4c1081;
$custom-light: #8459a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1081",
  "rgb": {
    "r": 76,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 271.858,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34885,
    "c": 0.16858,
    "h": 301.4
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#4C1081
secondary
#72B736
accent
#F4338E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4C1081

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

Preview Lab → · Contrast checker → · Palette generator →

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