#4A2182#4A2182

#4A2182 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.152 H 297.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4A2182
RGBrgb(74, 33, 130)
HSLhsl(265, 60%, 32%)
HSVhsv(265, 75%, 51%)
CMYKcmyk(43.1%, 74.6%, 0%, 49%)
CIE-LABlab(24.18, 40.28, -47.24)
CIE-LCHlch(24.18, 62.08, 310.46°)
OKLaboklab(36.43% 0.0704 -0.1351)
OKLCHoklch(36.43% 0.152 297.5)
XYZxyz(7.3961, 4.1551, 21.5271)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2182 #598221
analogous
#212982 #4A2182 #7B2182
triadic
#4A2182 #824A21 #21824A
tetradic
#4A2182 #822129 #598221 #21827B
square
#4A2182 #822129 #598221 #21827B
split-complementary
#4A2182 #827B21 #298221
monochromatic
#120820 #2E1551 #4A2182 #662DB3 #844CD2

Accessibility & contrast

On white

11.47
#4A2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4A2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2182
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2182#FFFFFF#000000##FFFFFF
##4A21821.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#3C3A4F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a2182;
/* rgb */ color: rgb(74, 33, 130);
/* oklch */ color: oklch(36.4% 0.152 297.5);
Tailwind
colors: {
  custom: {
    50: '#8260a7',
    500: '#4a2182',
    950: '#000000',
  },
}
SCSS
$custom: #4a2182;
$custom-light: #8260a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2182",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 265.361,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36433,
    "c": 0.15231,
    "h": 297.5
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#4A2182
secondary
#88B44A
accent
#E345A0
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2182

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

Preview Lab → · Contrast checker → · Palette generator →

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