#4A1A72#4A1A72

#4A1A72 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.143 H 304.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#4A1A72
RGBrgb(74, 26, 114)
HSLhsl(273, 63%, 27%)
HSVhsv(273, 77%, 45%)
CMYKcmyk(35.1%, 77.2%, 0%, 55.3%)
CIE-LABlab(21.61, 39.47, -41.23)
CIE-LCHlch(21.61, 57.07, 313.75°)
OKLaboklab(34.2% 0.0811 -0.1173)
OKLCHoklch(34.2% 0.143 304.6)
XYZxyz(6.2300, 3.4096, 16.2462)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A72 #42721A
analogous
#1E1A72 #4A1A72 #721A6E
triadic
#4A1A72 #724A1A #1A724A
tetradic
#4A1A72 #721E1A #42721A #1A6E72
square
#4A1A72 #721E1A #42721A #1A6E72
split-complementary
#4A1A72 #6E721A #1A721E
monochromatic
#100619 #2A0F40 #4A1A72 #6A25A4 #8A35D1

Accessibility & contrast

On white

12.49
#4A1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1A72
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A72#FFFFFF#000000##FFFFFF
##4A1A721.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#423044
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1a72;
/* rgb */ color: rgb(74, 26, 114);
/* oklch */ color: oklch(34.2% 0.143 304.6);
Tailwind
colors: {
  custom: {
    50: '#815c9b',
    500: '#4a1a72',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a72;
$custom-light: #815c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a72",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 272.727,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34196,
    "c": 0.14263,
    "h": 304.6
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#4A1A72
secondary
#6FA741
accent
#E6428C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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