#4A1A78#4A1A78

#4A1A78 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.149 H 302.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4A1A78
RGBrgb(74, 26, 120)
HSLhsl(271, 64%, 29%)
HSVhsv(271, 78%, 47%)
CMYKcmyk(38.3%, 78.3%, 0%, 52.9%)
CIE-LABlab(22.13, 40.99, -44.24)
CIE-LCHlch(22.13, 60.31, 312.82°)
OKLaboklab(34.72% 0.0797 -0.1262)
OKLCHoklch(34.72% 0.149 302.3)
XYZxyz(6.5828, 3.5507, 18.1042)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A78 #48781A
analogous
#1B1A78 #4A1A78 #781A77
triadic
#4A1A78 #784A1A #1A784A
tetradic
#4A1A78 #781B1A #48781A #1A7778
square
#4A1A78 #781B1A #48781A #1A7778
split-complementary
#4A1A78 #77781A #1A781B
monochromatic
#100519 #2B0F46 #4A1A78 #6925AA #8838D4

Accessibility & contrast

On white

12.28
#4A1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1A78
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A78#FFFFFF#000000##FFFFFF
##4A1A781.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#403248
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1a78;
/* rgb */ color: rgb(74, 26, 120);
/* oklch */ color: oklch(34.7% 0.149 302.3);
Tailwind
colors: {
  custom: {
    50: '#815ca0',
    500: '#4a1a78',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a78;
$custom-light: #815ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a78",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 270.638,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34716,
    "c": 0.14925,
    "h": 302.3
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#4A1A78
secondary
#76AC41
accent
#E74092
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4A1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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