#4C1A74#4C1A74

#4C1A74 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.145 H 305.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#4C1A74
RGBrgb(76, 26, 116)
HSLhsl(273, 63%, 28%)
HSVhsv(273, 78%, 45%)
CMYKcmyk(34.5%, 77.6%, 0%, 54.5%)
CIE-LABlab(22.08, 40.37, -41.75)
CIE-LCHlch(22.08, 58.08, 314.04°)
OKLaboklab(34.64% 0.0837 -0.1188)
OKLCHoklch(34.64% 0.145 305.2)
XYZxyz(6.5016, 3.5363, 16.8597)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1A74 #42741A
analogous
#1F1A74 #4C1A74 #741A6F
triadic
#4C1A74 #744C1A #1A744C
tetradic
#4C1A74 #741F1A #42741A #1A6F74
square
#4C1A74 #741F1A #42741A #1A6F74
split-complementary
#4C1A74 #6F741A #1A741F
monochromatic
#100619 #2B0F42 #4C1A74 #6D25A6 #8D36D2

Accessibility & contrast

On white

12.30
#4C1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4C1A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1A74
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1A74#FFFFFF#000000##FFFFFF
##4C1A741.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#453046
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1a74;
/* rgb */ color: rgb(76, 26, 116);
/* oklch */ color: oklch(34.6% 0.145 305.2);
Tailwind
colors: {
  custom: {
    50: '#825c9d',
    500: '#4c1a74',
    950: '#000000',
  },
}
SCSS
$custom: #4c1a74;
$custom-light: #825c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1a74",
  "rgb": {
    "r": 76,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 273.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34636,
    "c": 0.14531,
    "h": 305.2
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

primary
#4C1A74
secondary
#6FA941
accent
#E6418B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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