#4A2AA2#4A2AA2

#4A2AA2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.180 H 287.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4A2AA2
RGBrgb(74, 42, 162)
HSLhsl(256, 59%, 40%)
HSVhsv(256, 74%, 64%)
CMYKcmyk(54.3%, 74.1%, 0%, 36.5%)
CIE-LABlab(28.69, 44.74, -59.61)
CIE-LCHlch(28.69, 74.53, 306.89°)
OKLaboklab(40.51% 0.0547 -0.1714)
OKLCHoklch(40.51% 0.18 287.7)
XYZxyz(10.1717, 5.7199, 34.7435)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AA2 #82A22A
analogous
#2A46A2 #4A2AA2 #862AA2
triadic
#4A2AA2 #A24A2A #2AA24A
tetradic
#4A2AA2 #A22A46 #82A22A #2AA286
square
#4A2AA2 #A22A46 #82A22A #2AA286
split-complementary
#4A2AA2 #A2862A #46A22A
monochromatic
#1E1141 #341D71 #4A2AA2 #633DCD #8A6DD9

Accessibility & contrast

On white

9.79
#4A2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2AA2
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AA2#FFFFFF#000000##FFFFFF
##4A2AA21.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#264B64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a2aa2;
/* rgb */ color: rgb(74, 42, 162);
/* oklch */ color: oklch(40.5% 0.180 287.7);
Tailwind
colors: {
  custom: {
    50: '#8667bf',
    500: '#4a2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aa2;
$custom-light: #8667bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aa2",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 256,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.40513,
    "c": 0.17992,
    "h": 287.7
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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