#4A2A96#4A2A96

#4A2A96 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.165 H 290.3°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#4A2A96
RGBrgb(74, 42, 150)
HSLhsl(258, 56%, 38%)
HSVhsv(258, 72%, 59%)
CMYKcmyk(50.7%, 72%, 0%, 41.2%)
CIE-LABlab(27.61, 41.23, -54.07)
CIE-LCHlch(27.61, 67.99, 307.33°)
OKLaboklab(39.41% 0.0573 -0.1551)
OKLCHoklch(39.41% 0.165 290.3)
XYZxyz(9.1554, 5.3134, 29.3914)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2A96 #76962A
analogous
#2A4096 #4A2A96 #802A96
triadic
#4A2A96 #964A2A #2A964A
tetradic
#4A2A96 #962A40 #76962A #2A9680
square
#4A2A96 #962A40 #76962A #2A9680
split-complementary
#4A2A96 #96802A #40962A
monochromatic
#1B0F36 #321D66 #4A2A96 #6237C6 #8766D4

Accessibility & contrast

On white

10.18
#4A2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4A2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2A96
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2A96#FFFFFF#000000##FFFFFF
##4A2A961.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#30465D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a2a96;
/* rgb */ color: rgb(74, 42, 150);
/* oklch */ color: oklch(39.4% 0.165 290.3);
Tailwind
colors: {
  custom: {
    50: '#8466b6',
    500: '#4a2a96',
    950: '#000000',
  },
}
SCSS
$custom: #4a2a96;
$custom-light: #8466b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2a96",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 257.778,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39411,
    "c": 0.16541,
    "h": 290.3
  },
  "luminance": 0.05314
}

Semantic roles & 50–950 ramp

primary
#4A2A96
secondary
#A0BA61
accent
#E048B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4A2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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