#4C1180#4C1180

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

Color values

HEX#4C1180
RGBrgb(76, 17, 128)
HSLhsl(272, 77%, 28%)
HSVhsv(272, 87%, 50%)
CMYKcmyk(40.6%, 86.7%, 0%, 49.8%)
CIE-LABlab(21.93, 46.85, -49.64)
CIE-LCHlch(21.93, 68.26, 313.34°)
OKLaboklab(34.87% 0.0877 -0.1419)
OKLCHoklch(34.87% 0.167 301.7)
XYZxyz(7.0763, 3.4959, 20.7199)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1180 #458011
analogous
#141180 #4C1180 #80117C
triadic
#4C1180 #804C11 #11804C
tetradic
#4C1180 #801411 #458011 #117C80
square
#4C1180 #801411 #458011 #117C80
split-complementary
#4C1180 #7C8011 #118014
monochromatic
#10041B #2C0A4A #4C1180 #6C18B6 #8C29E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C1180#FFFFFF#000000##FFFFFF
##4C11801.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)
#003483
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#40324B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1180;
/* rgb */ color: rgb(76, 17, 128);
/* oklch */ color: oklch(34.9% 0.167 301.7);
Tailwind
colors: {
  custom: {
    50: '#8459a6',
    500: '#4c1180',
    950: '#000000',
  },
}
SCSS
$custom: #4c1180;
$custom-light: #8459a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1180",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 271.892,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34866,
    "c": 0.1668,
    "h": 301.7
  },
  "luminance": 0.03496
}

Semantic roles & 50–950 ramp

primary
#4C1180
secondary
#72B637
accent
#F3358E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4C1180

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

Preview Lab → · Contrast checker → · Palette generator →

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