#4C1A79#4C1A79

#4C1A79 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.151 H 303.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#4C1A79
RGBrgb(76, 26, 121)
HSLhsl(272, 65%, 29%)
HSVhsv(272, 79%, 47%)
CMYKcmyk(37.2%, 78.5%, 0%, 52.5%)
CIE-LABlab(22.50, 41.63, -44.26)
CIE-LCHlch(22.50, 60.76, 313.24°)
OKLaboklab(35.07% 0.0825 -0.1262)
OKLCHoklch(35.07% 0.151 303.2)
XYZxyz(6.8003, 3.6558, 18.4328)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1A79 #47791A
analogous
#1D1A79 #4C1A79 #791A77
triadic
#4C1A79 #794C1A #1A794C
tetradic
#4C1A79 #791D1A #47791A #1A7779
square
#4C1A79 #791D1A #47791A #1A7779
split-complementary
#4C1A79 #77791A #1A791D
monochromatic
#100519 #2C0F47 #4C1A79 #6C25AB #8B39D4

Accessibility & contrast

On white

12.13
#4C1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4C1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1A79
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1A79#FFFFFF#000000##FFFFFF
##4C1A791.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#433248
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c1a79;
/* rgb */ color: rgb(76, 26, 121);
/* oklch */ color: oklch(35.1% 0.151 303.2);
Tailwind
colors: {
  custom: {
    50: '#835ca0',
    500: '#4c1a79',
    950: '#000000',
  },
}
SCSS
$custom: #4c1a79;
$custom-light: #835ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1a79",
  "rgb": {
    "r": 76,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 271.579,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35067,
    "c": 0.15076,
    "h": 303.2
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#4C1A79
secondary
#75AD41
accent
#E8408F
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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