#4C2084#4C2084

#4C2084 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.156 H 298.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4C2084
RGBrgb(76, 32, 132)
HSLhsl(266, 61%, 32%)
HSVhsv(266, 76%, 52%)
CMYKcmyk(42.4%, 75.8%, 0%, 48.2%)
CIE-LABlab(24.43, 41.69, -48.07)
CIE-LCHlch(24.43, 63.63, 310.94°)
OKLaboklab(36.73% 0.074 -0.1374)
OKLCHoklch(36.73% 0.156 298.3)
XYZxyz(7.6608, 4.2353, 22.2392)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2084 #588420
analogous
#202684 #4C2084 #7E2084
triadic
#4C2084 #844C20 #20844C
tetradic
#4C2084 #842026 #588420 #20847E
square
#4C2084 #842026 #588420 #20847E
split-complementary
#4C2084 #847E20 #268420
monochromatic
#130821 #301453 #4C2084 #682CB5 #874BD3

Accessibility & contrast

On white

11.37
#4C2084 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C2084 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2084
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2084#FFFFFF#000000##FFFFFF
##4C20841.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2084;
/* rgb */ color: rgb(76, 32, 132);
/* oklch */ color: oklch(36.7% 0.156 298.3);
Tailwind
colors: {
  custom: {
    50: '#8460a9',
    500: '#4c2084',
    950: '#000000',
  },
}
SCSS
$custom: #4c2084;
$custom-light: #8460a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2084",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 132
  },
  "hsl": {
    "h": 266.4,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36726,
    "c": 0.15608,
    "h": 298.3
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#4C2084
secondary
#86B64A
accent
#E4449E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2084

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

Preview Lab → · Contrast checker → · Palette generator →

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