#4C186F#4C186F

#4C186F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.142 H 307.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#4C186F
RGBrgb(76, 24, 111)
HSLhsl(276, 64%, 26%)
HSVhsv(276, 78%, 44%)
CMYKcmyk(31.5%, 78.4%, 0%, 56.5%)
CIE-LABlab(21.35, 40.03, -39.71)
CIE-LCHlch(21.35, 56.38, 315.23°)
OKLaboklab(33.99% 0.0868 -0.1128)
OKLCHoklch(33.99% 0.142 307.6)
XYZxyz(6.1758, 3.3376, 15.3547)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C186F #3B6F18
analogous
#21186F #4C186F #6F1867
triadic
#4C186F #6F4C18 #186F4C
tetradic
#4C186F #6F2118 #3B6F18 #18676F
square
#4C186F #6F2118 #3B6F18 #18676F
split-complementary
#4C186F #676F18 #186F21
monochromatic
#110519 #2A0D3D #4C186F #6E23A1 #912FD2

Accessibility & contrast

On white

12.59
#4C186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4C186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C186F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C186F#FFFFFF#000000##FFFFFF
##4C186F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#462D42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c186f;
/* rgb */ color: rgb(76, 24, 111);
/* oklch */ color: oklch(34.0% 0.142 307.6);
Tailwind
colors: {
  custom: {
    50: '#825b99',
    500: '#4c186f',
    950: '#000000',
  },
}
SCSS
$custom: #4c186f;
$custom-light: #825b99;
$custom-dark: #000000;
JSON
{
  "hex": "#4c186f",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 275.862,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33993,
    "c": 0.14231,
    "h": 307.6
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#4C186F
secondary
#67A53E
accent
#E74084
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C186F

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

Preview Lab → · Contrast checker → · Palette generator →

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