#4D186A#4D186A

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

Color values

HEX#4D186A
RGBrgb(77, 24, 106)
HSLhsl(279, 63%, 25%)
HSVhsv(279, 77%, 42%)
CMYKcmyk(27.4%, 77.4%, 0%, 58.4%)
CIE-LABlab(21.10, 39.04, -36.85)
CIE-LCHlch(21.10, 53.69, 316.65°)
OKLaboklab(33.72% 0.0892 -0.1044)
OKLCHoklch(33.72% 0.137 310.5)
XYZxyz(5.9882, 3.2718, 13.9489)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D186A #356A18
analogous
#24186A #4D186A #6A185E
triadic
#4D186A #6A4D18 #186A4D
tetradic
#4D186A #6A2418 #356A18 #185E6A
square
#4D186A #6A2418 #356A18 #185E6A
split-complementary
#4D186A #5E6A18 #186A24
monochromatic
#120619 #290D38 #4D186A #71239C #952FCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D186A#FFFFFF#000000##FFFFFF
##4D186A1.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)
#00306C
Deuteranopia (green-blind)
#073468
Tritanopia (blue-blind)
#492B3F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d186a;
/* rgb */ color: rgb(77, 24, 106);
/* oklch */ color: oklch(33.7% 0.137 310.5);
Tailwind
colors: {
  custom: {
    50: '#825b95',
    500: '#4d186a',
    950: '#000000',
  },
}
SCSS
$custom: #4d186a;
$custom-light: #825b95;
$custom-dark: #000000;
JSON
{
  "hex": "#4d186a",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 278.78,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33724,
    "c": 0.13731,
    "h": 310.5
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#4D186A
secondary
#61A03E
accent
#E6427C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D186A

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

Preview Lab → · Contrast checker → · Palette generator →

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