#4D186C#4D186C

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

Color values

HEX#4D186C
RGBrgb(77, 24, 108)
HSLhsl(278, 64%, 26%)
HSVhsv(278, 78%, 42%)
CMYKcmyk(28.7%, 77.8%, 0%, 57.6%)
CIE-LABlab(21.26, 39.51, -37.90)
CIE-LCHlch(21.26, 54.75, 316.19°)
OKLaboklab(33.89% 0.0889 -0.1074)
OKLCHoklch(33.89% 0.139 309.6)
XYZxyz(6.0934, 3.3139, 14.5031)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D186C #376C18
analogous
#23186C #4D186C #6C1861
triadic
#4D186C #6C4D18 #186C4D
tetradic
#4D186C #6C2318 #376C18 #18616C
square
#4D186C #6C2318 #376C18 #18616C
split-complementary
#4D186C #616C18 #186C23
monochromatic
#120619 #290D3A #4D186C #71239E #942ED0

Accessibility & contrast

On white

12.63
#4D186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4D186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D186C
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D186C#FFFFFF#000000##FFFFFF
##4D186C1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d186c;
/* rgb */ color: rgb(77, 24, 108);
/* oklch */ color: oklch(33.9% 0.139 309.6);
Tailwind
colors: {
  custom: {
    50: '#825b97',
    500: '#4d186c',
    950: '#000000',
  },
}
SCSS
$custom: #4d186c;
$custom-light: #825b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4d186c",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 277.857,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33886,
    "c": 0.13942,
    "h": 309.6
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#4D186C
secondary
#63A23E
accent
#E7417E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D186C

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

Preview Lab → · Contrast checker → · Palette generator →

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