#4A1A76#4A1A76

#4A1A76 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.147 H 303.0°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#4A1A76
RGBrgb(74, 26, 118)
HSLhsl(271, 64%, 28%)
HSVhsv(271, 78%, 46%)
CMYKcmyk(37.3%, 78%, 0%, 53.7%)
CIE-LABlab(21.95, 40.48, -43.24)
CIE-LCHlch(21.95, 59.24, 313.11°)
OKLaboklab(34.54% 0.0802 -0.1233)
OKLCHoklch(34.54% 0.147 303)
XYZxyz(6.4627, 3.5026, 17.4716)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A76 #46761A
analogous
#1C1A76 #4A1A76 #761A74
triadic
#4A1A76 #764A1A #1A764A
tetradic
#4A1A76 #761C1A #46761A #1A7476
square
#4A1A76 #761C1A #46761A #1A7476
split-complementary
#4A1A76 #74761A #1A761C
monochromatic
#100619 #2B0F44 #4A1A76 #6925A8 #8937D3

Accessibility & contrast

On white

12.35
#4A1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A1A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A76
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A76#FFFFFF#000000##FFFFFF
##4A1A761.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1a76;
/* rgb */ color: rgb(74, 26, 118);
/* oklch */ color: oklch(34.5% 0.147 303.0);
Tailwind
colors: {
  custom: {
    50: '#815c9e',
    500: '#4a1a76',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a76;
$custom-light: #815c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a76",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 271.304,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34541,
    "c": 0.14705,
    "h": 303
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#4A1A76
secondary
#74AB41
accent
#E74190
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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