#4A2AA4#4A2AA4

#4A2AA4 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.182 H 287.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4A2AA4
RGBrgb(74, 42, 164)
HSLhsl(256, 59%, 40%)
HSVhsv(256, 74%, 64%)
CMYKcmyk(54.9%, 74.4%, 0%, 35.7%)
CIE-LABlab(28.88, 45.32, -60.51)
CIE-LCHlch(28.88, 75.60, 306.83°)
OKLaboklab(40.7% 0.0542 -0.1741)
OKLCHoklch(40.7% 0.182 287.3)
XYZxyz(10.3509, 5.7916, 35.6872)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AA4 #84A42A
analogous
#2A47A4 #4A2AA4 #872AA4
triadic
#4A2AA4 #A44A2A #2AA44A
tetradic
#4A2AA4 #A42A47 #84A42A #2AA487
square
#4A2AA4 #A42A47 #84A42A #2AA487
split-complementary
#4A2AA4 #A4872A #47A42A
monochromatic
#1E1143 #341E73 #4A2AA4 #633ECD #8B6EDA

Accessibility & contrast

On white

9.73
#4A2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4A2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AA4
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AA4#FFFFFF#000000##FFFFFF
##4A2AA41.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#244B65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a2aa4;
/* rgb */ color: rgb(74, 42, 164);
/* oklch */ color: oklch(40.7% 0.182 287.3);
Tailwind
colors: {
  custom: {
    50: '#8667c0',
    500: '#4a2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aa4;
$custom-light: #8667c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aa4",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 255.738,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40701,
    "c": 0.1823,
    "h": 287.3
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#4A2AA4
secondary
#AAC169
accent
#E245B9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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