#4C186A#4C186A

#4C186A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.137 H 309.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#4C186A
RGBrgb(76, 24, 106)
HSLhsl(278, 63%, 25%)
HSVhsv(278, 77%, 42%)
CMYKcmyk(28.3%, 77.4%, 0%, 58.4%)
CIE-LABlab(20.94, 38.82, -37.12)
CIE-LCHlch(20.94, 53.71, 316.29°)
OKLaboklab(33.58% 0.0878 -0.1052)
OKLCHoklch(33.58% 0.137 309.8)
XYZxyz(5.9081, 3.2305, 13.9452)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C186A #366A18
analogous
#23186A #4C186A #6A185F
triadic
#4C186A #6A4C18 #186A4C
tetradic
#4C186A #6A2318 #366A18 #185F6A
square
#4C186A #6A2318 #366A18 #185F6A
split-complementary
#4C186A #5F6A18 #186A23
monochromatic
#120619 #280D38 #4C186A #70239C #942FCE

Accessibility & contrast

On white

12.76
#4C186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4C186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C186A
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C186A#FFFFFF#000000##FFFFFF
##4C186A1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#053368
Tritanopia (blue-blind)
#482B3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c186a;
/* rgb */ color: rgb(76, 24, 106);
/* oklch */ color: oklch(33.6% 0.137 309.8);
Tailwind
colors: {
  custom: {
    50: '#825b95',
    500: '#4c186a',
    950: '#000000',
  },
}
SCSS
$custom: #4c186a;
$custom-light: #825b95;
$custom-dark: #000000;
JSON
{
  "hex": "#4c186a",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 278.049,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3358,
    "c": 0.13698,
    "h": 309.8
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#4C186A
secondary
#62A03E
accent
#E6427E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C186A

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

Preview Lab → · Contrast checker → · Palette generator →

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