#4C186B#4C186B

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

Color values

HEX#4C186B
RGBrgb(76, 24, 107)
HSLhsl(278, 63%, 26%)
HSVhsv(278, 78%, 42%)
CMYKcmyk(29%, 77.6%, 0%, 58%)
CIE-LABlab(21.02, 39.06, -37.64)
CIE-LCHlch(21.02, 54.24, 316.06°)
OKLaboklab(33.66% 0.0876 -0.1067)
OKLCHoklch(33.66% 0.138 309.4)
XYZxyz(5.9604, 3.2514, 14.2207)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C186B #376B18
analogous
#22186B #4C186B #6B1860
triadic
#4C186B #6B4C18 #186B4C
tetradic
#4C186B #6B2218 #376B18 #18606B
square
#4C186B #6B2218 #376B18 #18606B
split-complementary
#4C186B #606B18 #186B22
monochromatic
#120619 #280D39 #4C186B #70239D #932ECF

Accessibility & contrast

On white

12.73
#4C186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C186B
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C186B#FFFFFF#000000##FFFFFF
##4C186B1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#033369
Tritanopia (blue-blind)
#472B40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c186b;
/* rgb */ color: rgb(76, 24, 107);
/* oklch */ color: oklch(33.7% 0.138 309.4);
Tailwind
colors: {
  custom: {
    50: '#825b96',
    500: '#4c186b',
    950: '#000000',
  },
}
SCSS
$custom: #4c186b;
$custom-light: #825b96;
$custom-dark: #000000;
JSON
{
  "hex": "#4c186b",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 277.59,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33662,
    "c": 0.13804,
    "h": 309.4
  },
  "luminance": 0.03251
}

Semantic roles & 50–950 ramp

primary
#4C186B
secondary
#63A13E
accent
#E6417F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C186B

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

Preview Lab → · Contrast checker → · Palette generator →

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