#4A2AA0#4A2AA0

#4A2AA0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.178 H 288.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4A2AA0
RGBrgb(74, 42, 160)
HSLhsl(256, 58%, 40%)
HSVhsv(256, 74%, 63%)
CMYKcmyk(53.7%, 73.8%, 0%, 37.3%)
CIE-LABlab(28.51, 44.15, -58.70)
CIE-LCHlch(28.51, 73.45, 306.95°)
OKLaboklab(40.33% 0.0552 -0.1687)
OKLCHoklch(40.33% 0.178 288.1)
XYZxyz(9.9953, 5.6493, 33.8147)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AA0 #80A02A
analogous
#2A45A0 #4A2AA0 #852AA0
triadic
#4A2AA0 #A04A2A #2AA04A
tetradic
#4A2AA0 #A02A45 #80A02A #2AA085
square
#4A2AA0 #A02A45 #80A02A #2AA085
split-complementary
#4A2AA0 #A0852A #45A02A
monochromatic
#1D113F #341D70 #4A2AA0 #633CCC #896CD8

Accessibility & contrast

On white

9.86
#4A2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4A2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AA0
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AA0#FFFFFF#000000##FFFFFF
##4A2AA01.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#284A62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a2aa0;
/* rgb */ color: rgb(74, 42, 160);
/* oklch */ color: oklch(40.3% 0.178 288.1);
Tailwind
colors: {
  custom: {
    50: '#8667bd',
    500: '#4a2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aa0;
$custom-light: #8667bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aa0",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 256.271,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40326,
    "c": 0.17752,
    "h": 288.1
  },
  "luminance": 0.0565
}

Semantic roles & 50–950 ramp

primary
#4A2AA0
secondary
#A7BF67
accent
#E246B7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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