#4C1A76#4C1A76

#4C1A76 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.147 H 304.3°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#4C1A76
RGBrgb(76, 26, 118)
HSLhsl(273, 64%, 28%)
HSVhsv(273, 78%, 46%)
CMYKcmyk(35.6%, 78%, 0%, 53.7%)
CIE-LABlab(22.24, 40.87, -42.76)
CIE-LCHlch(22.24, 59.15, 313.71°)
OKLaboklab(34.81% 0.0832 -0.1218)
OKLCHoklch(34.81% 0.147 304.3)
XYZxyz(6.6192, 3.5833, 17.4790)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1A76 #44761A
analogous
#1E1A76 #4C1A76 #761A72
triadic
#4C1A76 #764C1A #1A764C
tetradic
#4C1A76 #761E1A #44761A #1A7276
square
#4C1A76 #761E1A #44761A #1A7276
split-complementary
#4C1A76 #72761A #1A761E
monochromatic
#100619 #2C0F44 #4C1A76 #6C25A8 #8C37D3

Accessibility & contrast

On white

12.23
#4C1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1A76
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1A76#FFFFFF#000000##FFFFFF
##4C1A761.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#443147
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1a76;
/* rgb */ color: rgb(76, 26, 118);
/* oklch */ color: oklch(34.8% 0.147 304.3);
Tailwind
colors: {
  custom: {
    50: '#835c9e',
    500: '#4c1a76',
    950: '#000000',
  },
}
SCSS
$custom: #4c1a76;
$custom-light: #835c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1a76",
  "rgb": {
    "r": 76,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 272.609,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34807,
    "c": 0.14749,
    "h": 304.3
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#4C1A76
secondary
#71AB41
accent
#E7418D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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