#4A2AAA#4A2AAA

#4A2AAA is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.189 H 286.2°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4A2AAA
RGBrgb(74, 42, 170)
HSLhsl(255, 60%, 42%)
HSVhsv(255, 75%, 67%)
CMYKcmyk(56.5%, 75.3%, 0%, 33.3%)
CIE-LABlab(29.45, 47.07, -63.20)
CIE-LCHlch(29.45, 78.81, 306.68°)
OKLaboklab(41.27% 0.0527 -0.1819)
OKLCHoklch(41.27% 0.189 286.2)
XYZxyz(10.9055, 6.0134, 38.6085)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AAA #8AAA2A
analogous
#2A4AAA #4A2AAA #8A2AAA
triadic
#4A2AAA #AA4A2A #2AAA4A
tetradic
#4A2AAA #AA2A4A #8AAA2A #2AAA8A
square
#4A2AAA #AA2A4A #8AAA2A #2AAA8A
split-complementary
#4A2AAA #AA8A2A #4AAA2A
monochromatic
#1F1248 #351E79 #4A2AAA #6541D0 #8D72DC

Accessibility & contrast

On white

9.53
#4A2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4A2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AAA
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AAA#FFFFFF#000000##FFFFFF
##4A2AAA1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0042A8
Tritanopia (blue-blind)
#1D4E68
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a2aaa;
/* rgb */ color: rgb(74, 42, 170);
/* oklch */ color: oklch(41.3% 0.189 286.2);
Tailwind
colors: {
  custom: {
    50: '#8767c4',
    500: '#4a2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aaa;
$custom-light: #8767c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aaa",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 255,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41272,
    "c": 0.18941,
    "h": 286.2
  },
  "luminance": 0.06014
}

Semantic roles & 50–950 ramp

primary
#4A2AAA
secondary
#AEC36C
accent
#E444BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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