#4A2AA1#4A2AA1

#4A2AA1 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.179 H 287.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4A2AA1
RGBrgb(74, 42, 161)
HSLhsl(256, 59%, 40%)
HSVhsv(256, 74%, 63%)
CMYKcmyk(54%, 73.9%, 0%, 36.9%)
CIE-LABlab(28.60, 44.44, -59.15)
CIE-LCHlch(28.60, 73.99, 306.92°)
OKLaboklab(40.42% 0.0549 -0.1701)
OKLCHoklch(40.42% 0.179 287.9)
XYZxyz(10.0831, 5.6845, 34.2772)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AA1 #81A12A
analogous
#2A46A1 #4A2AA1 #852AA1
triadic
#4A2AA1 #A14A2A #2AA14A
tetradic
#4A2AA1 #A12A46 #81A12A #2AA185
square
#4A2AA1 #A12A46 #81A12A #2AA185
split-complementary
#4A2AA1 #A1852A #46A12A
monochromatic
#1D1140 #341D70 #4A2AA1 #633CCC #8A6DD9

Accessibility & contrast

On white

9.83
#4A2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4A2AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AA1
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AA1#FFFFFF#000000##FFFFFF
##4A2AA11.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#274A63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a2aa1;
/* rgb */ color: rgb(74, 42, 161);
/* oklch */ color: oklch(40.4% 0.179 287.9);
Tailwind
colors: {
  custom: {
    50: '#8667be',
    500: '#4a2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aa1;
$custom-light: #8667be;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aa1",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 256.134,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4042,
    "c": 0.17872,
    "h": 287.9
  },
  "luminance": 0.05685
}

Semantic roles & 50–950 ramp

primary
#4A2AA1
secondary
#A8C067
accent
#E246B8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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