#4A1A77#4A1A77

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

Color values

HEX#4A1A77
RGBrgb(74, 26, 119)
HSLhsl(271, 64%, 28%)
HSVhsv(271, 78%, 47%)
CMYKcmyk(37.8%, 78.2%, 0%, 53.3%)
CIE-LABlab(22.04, 40.74, -43.74)
CIE-LCHlch(22.04, 59.78, 312.96°)
OKLaboklab(34.63% 0.0799 -0.1247)
OKLCHoklch(34.63% 0.148 302.6)
XYZxyz(6.5224, 3.5265, 17.7863)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A77 #47771A
analogous
#1B1A77 #4A1A77 #771A75
triadic
#4A1A77 #774A1A #1A774A
tetradic
#4A1A77 #771B1A #47771A #1A7577
square
#4A1A77 #771B1A #47771A #1A7577
split-complementary
#4A1A77 #75771A #1A771B
monochromatic
#100519 #2B0F45 #4A1A77 #6925A9 #8838D3

Accessibility & contrast

On white

12.31
#4A1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1A77
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A77#FFFFFF#000000##FFFFFF
##4A1A771.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#413247
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1a77;
/* rgb */ color: rgb(74, 26, 119);
/* oklch */ color: oklch(34.6% 0.148 302.6);
Tailwind
colors: {
  custom: {
    50: '#815c9f',
    500: '#4a1a77',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a77;
$custom-light: #815c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a77",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 270.968,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34628,
    "c": 0.14815,
    "h": 302.6
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#4A1A77
secondary
#75AC41
accent
#E74191
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4A1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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