#4C1786#4C1786

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

Color values

HEX#4C1786
RGBrgb(76, 23, 134)
HSLhsl(269, 71%, 31%)
HSVhsv(269, 83%, 53%)
CMYKcmyk(43.3%, 82.8%, 0%, 47.5%)
CIE-LABlab(23.24, 46.17, -51.28)
CIE-LCHlch(23.24, 69.00, 312.00°)
OKLaboklab(35.95% 0.0813 -0.1468)
OKLCHoklch(35.95% 0.168 299)
XYZxyz(7.5889, 3.8704, 22.8969)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1786 #518617
analogous
#171986 #4C1786 #831786
triadic
#4C1786 #864C17 #17864C
tetradic
#4C1786 #861719 #518617 #178683
square
#4C1786 #861719 #518617 #178683
split-complementary
#4C1786 #868317 #198617
monochromatic
#11051E #2E0E52 #4C1786 #6A20BA #883ADD

Accessibility & contrast

On white

11.84
#4C1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1786
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1786#FFFFFF#000000##FFFFFF
##4C17861.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#3E364F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1786;
/* rgb */ color: rgb(76, 23, 134);
/* oklch */ color: oklch(35.9% 0.168 299.0);
Tailwind
colors: {
  custom: {
    50: '#855caa',
    500: '#4c1786',
    950: '#000000',
  },
}
SCSS
$custom: #4c1786;
$custom-light: #855caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1786",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 268.649,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35945,
    "c": 0.16777,
    "h": 299
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#4C1786
secondary
#7FBA3F
accent
#ED3A98
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1786

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

Preview Lab → · Contrast checker → · Palette generator →

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