#4A1A71#4A1A71

#4A1A71 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.142 H 305.1°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#4A1A71
RGBrgb(74, 26, 113)
HSLhsl(273, 63%, 27%)
HSVhsv(273, 77%, 44%)
CMYKcmyk(34.5%, 77%, 0%, 55.7%)
CIE-LABlab(21.53, 39.21, -40.72)
CIE-LCHlch(21.53, 56.53, 313.92°)
OKLaboklab(34.11% 0.0813 -0.1158)
OKLCHoklch(34.11% 0.142 305.1)
XYZxyz(6.1734, 3.3869, 15.9481)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A71 #41711A
analogous
#1E1A71 #4A1A71 #711A6D
triadic
#4A1A71 #714A1A #1A714A
tetradic
#4A1A71 #711E1A #41711A #1A6D71
square
#4A1A71 #711E1A #41711A #1A6D71
split-complementary
#4A1A71 #6D711A #1A711E
monochromatic
#100619 #290F3F #4A1A71 #6B25A3 #8B35D0

Accessibility & contrast

On white

12.52
#4A1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4A1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A71
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A71#FFFFFF#000000##FFFFFF
##4A1A711.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#432F44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1a71;
/* rgb */ color: rgb(74, 26, 113);
/* oklch */ color: oklch(34.1% 0.142 305.1);
Tailwind
colors: {
  custom: {
    50: '#815c9a',
    500: '#4a1a71',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a71;
$custom-light: #815c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a71",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 273.103,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34111,
    "c": 0.14152,
    "h": 305.1
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#4A1A71
secondary
#6EA641
accent
#E6428B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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