#4A1A79#4A1A79

#4A1A79 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.150 H 301.9°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#4A1A79
RGBrgb(74, 26, 121)
HSLhsl(270, 65%, 29%)
HSVhsv(270, 79%, 47%)
CMYKcmyk(38.8%, 78.5%, 0%, 52.5%)
CIE-LABlab(22.21, 41.25, -44.74)
CIE-LCHlch(22.21, 60.85, 312.68°)
OKLaboklab(34.81% 0.0794 -0.1277)
OKLCHoklch(34.81% 0.15 301.9)
XYZxyz(6.6438, 3.5751, 18.4255)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A79 #49791A
analogous
#1B1A79 #4A1A79 #791A79
triadic
#4A1A79 #794A1A #1A794A
tetradic
#4A1A79 #791B1A #49791A #1A7979
square
#4A1A79 #791B1A #49791A #1A7979
split-complementary
#4A1A79 #79791A #1A791B
monochromatic
#0F0519 #2B0F47 #4A1A79 #6925AB #8839D4

Accessibility & contrast

On white

12.24
#4A1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4A1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A79
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A79#FFFFFF#000000##FFFFFF
##4A1A791.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#403248
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1a79;
/* rgb */ color: rgb(74, 26, 121);
/* oklch */ color: oklch(34.8% 0.150 301.9);
Tailwind
colors: {
  custom: {
    50: '#825ca0',
    500: '#4a1a79',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a79;
$custom-light: #825ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a79",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 270.316,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34805,
    "c": 0.15035,
    "h": 301.9
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#4A1A79
secondary
#77AD41
accent
#E84093
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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