#4C186C#4C186C

#4C186C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.139 H 308.9°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4C186C
RGBrgb(76, 24, 108)
HSLhsl(277, 64%, 26%)
HSVhsv(277, 78%, 42%)
CMYKcmyk(29.6%, 77.8%, 0%, 57.6%)
CIE-LABlab(21.10, 39.30, -38.16)
CIE-LCHlch(21.10, 54.78, 315.85°)
OKLaboklab(33.74% 0.0874 -0.1082)
OKLCHoklch(33.74% 0.139 308.9)
XYZxyz(6.0133, 3.2726, 14.4993)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C186C #386C18
analogous
#22186C #4C186C #6C1862
triadic
#4C186C #6C4C18 #186C4C
tetradic
#4C186C #6C2218 #386C18 #18626C
square
#4C186C #6C2218 #386C18 #18626C
split-complementary
#4C186C #626C18 #186C22
monochromatic
#120619 #290D3A #4C186C #6F239E #922ED0

Accessibility & contrast

On white

12.69
#4C186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C186C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C186C#FFFFFF#000000##FFFFFF
##4C186C1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#01336A
Tritanopia (blue-blind)
#472C41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c186c;
/* rgb */ color: rgb(76, 24, 108);
/* oklch */ color: oklch(33.7% 0.139 308.9);
Tailwind
colors: {
  custom: {
    50: '#825b97',
    500: '#4c186c',
    950: '#000000',
  },
}
SCSS
$custom: #4c186c;
$custom-light: #825b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4c186c",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 277.143,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33744,
    "c": 0.13911,
    "h": 308.9
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#4C186C
secondary
#64A23E
accent
#E74180
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C186C

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

Preview Lab → · Contrast checker → · Palette generator →

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