#4C1884#4C1884

#4C1884 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.165 H 299.5°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4C1884
RGBrgb(76, 24, 132)
HSLhsl(269, 69%, 31%)
HSVhsv(269, 82%, 52%)
CMYKcmyk(42.4%, 81.8%, 0%, 48.2%)
CIE-LABlab(23.19, 45.27, -50.11)
CIE-LCHlch(23.19, 67.52, 312.10°)
OKLaboklab(35.85% 0.0811 -0.1433)
OKLCHoklch(35.85% 0.165 299.5)
XYZxyz(7.4709, 3.8556, 22.1759)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1884 #508418
analogous
#181A84 #4C1884 #821884
triadic
#4C1884 #844C18 #18844C
tetradic
#4C1884 #84181A #508418 #188482
square
#4C1884 #84181A #508418 #188482
split-complementary
#4C1884 #848218 #1A8418
monochromatic
#10051C #2E0F50 #4C1884 #6A21B8 #883BDB

Accessibility & contrast

On white

11.86
#4C1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4C1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1884
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1884#FFFFFF#000000##FFFFFF
##4C18841.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003682
Tritanopia (blue-blind)
#3E364E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1884;
/* rgb */ color: rgb(76, 24, 132);
/* oklch */ color: oklch(35.9% 0.165 299.5);
Tailwind
colors: {
  custom: {
    50: '#845ca9',
    500: '#4c1884',
    950: '#000000',
  },
}
SCSS
$custom: #4c1884;
$custom-light: #845ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1884",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 268.889,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35853,
    "c": 0.1647,
    "h": 299.5
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#4C1884
secondary
#7EB840
accent
#EC3C97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1884

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

Preview Lab → · Contrast checker → · Palette generator →

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