#4C2184#4C2184

#4C2184 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.155 H 298.1°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#4C2184
RGBrgb(76, 33, 132)
HSLhsl(266, 60%, 32%)
HSVhsv(266, 75%, 52%)
CMYKcmyk(42.4%, 75%, 0%, 48.2%)
CIE-LABlab(24.61, 41.20, -47.79)
CIE-LCHlch(24.61, 63.10, 310.77°)
OKLaboklab(36.85% 0.073 -0.1366)
OKLCHoklch(36.85% 0.155 298.1)
XYZxyz(7.6881, 4.2900, 22.2483)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2184 #598421
analogous
#212784 #4C2184 #7E2184
triadic
#4C2184 #844C21 #21844C
tetradic
#4C2184 #842127 #598421 #21847E
square
#4C2184 #842127 #598421 #21847E
split-complementary
#4C2184 #847E21 #278421
monochromatic
#140922 #301553 #4C2184 #682DB5 #874DD2

Accessibility & contrast

On white

11.30
#4C2184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4C2184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2184
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2184#FFFFFF#000000##FFFFFF
##4C21841.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#3E3A50
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2184;
/* rgb */ color: rgb(76, 33, 132);
/* oklch */ color: oklch(36.8% 0.155 298.1);
Tailwind
colors: {
  custom: {
    50: '#8461a9',
    500: '#4c2184',
    950: '#000000',
  },
}
SCSS
$custom: #4c2184;
$custom-light: #8461a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2184",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 266.061,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36849,
    "c": 0.15489,
    "h": 298.1
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

primary
#4C2184
secondary
#87B64B
accent
#E3459E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2184

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

Preview Lab → · Contrast checker → · Palette generator →

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