#4A2180#4A2180

#4A2180 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.150 H 298.2°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4A2180
RGBrgb(74, 33, 128)
HSLhsl(266, 59%, 32%)
HSVhsv(266, 74%, 50%)
CMYKcmyk(42.2%, 74.2%, 0%, 49.8%)
CIE-LABlab(24.01, 39.74, -46.26)
CIE-LCHlch(24.01, 60.98, 310.66°)
OKLaboklab(36.26% 0.0709 -0.1322)
OKLCHoklch(36.26% 0.15 298.2)
XYZxyz(7.2632, 4.1020, 20.8270)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2180 #578021
analogous
#212880 #4A2180 #7A2180
triadic
#4A2180 #804A21 #21804A
tetradic
#4A2180 #802128 #578021 #21807A
square
#4A2180 #802128 #578021 #21807A
split-complementary
#4A2180 #807A21 #288021
monochromatic
#12081F #2E144F #4A2180 #662EB1 #854BD1

Accessibility & contrast

On white

11.54
#4A2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2180
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2180#FFFFFF#000000##FFFFFF
##4A21801.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#3D394E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a2180;
/* rgb */ color: rgb(74, 33, 128);
/* oklch */ color: oklch(36.3% 0.150 298.2);
Tailwind
colors: {
  custom: {
    50: '#8260a6',
    500: '#4a2180',
    950: '#000000',
  },
}
SCSS
$custom: #4a2180;
$custom-light: #8260a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2180",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 265.895,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36258,
    "c": 0.14997,
    "h": 298.2
  },
  "luminance": 0.04102
}

Semantic roles & 50–950 ramp

primary
#4A2180
secondary
#86B34A
accent
#E2469F
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A2180

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

Preview Lab → · Contrast checker → · Palette generator →

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