#4A1A8D#4A1A8D

#4A1A8D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.172 H 295.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4A1A8D
RGBrgb(74, 26, 141)
HSLhsl(265, 69%, 33%)
HSVhsv(265, 82%, 55%)
CMYKcmyk(47.5%, 81.6%, 0%, 44.7%)
CIE-LABlab(24.06, 46.47, -54.33)
CIE-LCHlch(24.06, 71.49, 310.54°)
OKLaboklab(36.66% 0.0735 -0.1558)
OKLCHoklch(36.66% 0.172 295.3)
XYZxyz(7.9998, 4.1175, 25.5674)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A8D #5D8D1A
analogous
#1A248D #4A1A8D #831A8D
triadic
#4A1A8D #8D4A1A #1A8D4A
tetradic
#4A1A8D #8D1A24 #5D8D1A #1A8D83
square
#4A1A8D #8D1A24 #5D8D1A #1A8D83
split-complementary
#4A1A8D #8D831A #248D1A
monochromatic
#140726 #2F1059 #4A1A8D #6524C1 #8445DD

Accessibility & contrast

On white

11.52
#4A1A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A1A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A8D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A8D#FFFFFF#000000##FFFFFF
##4A1A8D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#373B54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1a8d;
/* rgb */ color: rgb(74, 26, 141);
/* oklch */ color: oklch(36.7% 0.172 295.3);
Tailwind
colors: {
  custom: {
    50: '#845daf',
    500: '#4a1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a8d;
$custom-light: #845daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a8d",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 265.043,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36658,
    "c": 0.17227,
    "h": 295.3
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#4A1A8D
secondary
#8BBE45
accent
#EC3CA2
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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