#4A2AAD#4A2AAD

#4A2AAD is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.193 H 285.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4A2AAD
RGBrgb(74, 42, 173)
HSLhsl(255, 61%, 42%)
HSVhsv(255, 76%, 68%)
CMYKcmyk(57.2%, 75.7%, 0%, 32.2%)
CIE-LABlab(29.73, 47.95, -64.53)
CIE-LCHlch(29.73, 80.39, 306.61°)
OKLaboklab(41.56% 0.0519 -0.1858)
OKLCHoklch(41.56% 0.193 285.6)
XYZxyz(11.1925, 6.1282, 40.1202)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AAD #8DAD2A
analogous
#2A4CAD #4A2AAD #8B2AAD
triadic
#4A2AAD #AD4A2A #2AAD4A
tetradic
#4A2AAD #AD2A4C #8DAD2A #2AAD8B
square
#4A2AAD #AD2A4C #8DAD2A #2AAD8B
split-complementary
#4A2AAD #AD8B2A #4CAD2A
monochromatic
#20124B #351E7C #4A2AAD #6643D1 #8E74DD

Accessibility & contrast

On white

9.43
#4A2AAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4A2AAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AAD
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AAD#FFFFFF#000000##FFFFFF
##4A2AAD1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B1
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#194F6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2aad;
/* rgb */ color: rgb(74, 42, 173);
/* oklch */ color: oklch(41.6% 0.193 285.6);
Tailwind
colors: {
  custom: {
    50: '#8867c7',
    500: '#4a2aad',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aad;
$custom-light: #8867c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aad",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 173
  },
  "hsl": {
    "h": 254.656,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41562,
    "c": 0.19294,
    "h": 285.6
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#4A2AAD
secondary
#B0C56E
accent
#E444BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4A2AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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