#4C1886#4C1886

#4C1886 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.167 H 298.9°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4C1886
RGBrgb(76, 24, 134)
HSLhsl(268, 70%, 31%)
HSVhsv(268, 82%, 53%)
CMYKcmyk(43.3%, 82.1%, 0%, 47.5%)
CIE-LABlab(23.37, 45.78, -51.06)
CIE-LCHlch(23.37, 68.57, 311.88°)
OKLaboklab(36.04% 0.0805 -0.1461)
OKLCHoklch(36.04% 0.167 298.9)
XYZxyz(7.6091, 3.9109, 22.9036)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1886 #528618
analogous
#181B86 #4C1886 #831886
triadic
#4C1886 #864C18 #18864C
tetradic
#4C1886 #86181B #528618 #188683
square
#4C1886 #86181B #528618 #188683
split-complementary
#4C1886 #868318 #1B8618
monochromatic
#11051E #2F0F52 #4C1886 #6921BA #883CDC

Accessibility & contrast

On white

11.78
#4C1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4C1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1886
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1886#FFFFFF#000000##FFFFFF
##4C18861.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#3E374F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1886;
/* rgb */ color: rgb(76, 24, 134);
/* oklch */ color: oklch(36.0% 0.167 298.9);
Tailwind
colors: {
  custom: {
    50: '#845caa',
    500: '#4c1886',
    950: '#000000',
  },
}
SCSS
$custom: #4c1886;
$custom-light: #845caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1886",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 268.364,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3604,
    "c": 0.16683,
    "h": 298.9
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#4C1886
secondary
#80BA40
accent
#EC3B99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1886

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

Preview Lab → · Contrast checker → · Palette generator →

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