#4D186B#4D186B

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

Color values

HEX#4D186B
RGBrgb(77, 24, 107)
HSLhsl(278, 63%, 26%)
HSVhsv(278, 78%, 42%)
CMYKcmyk(28%, 77.6%, 0%, 58%)
CIE-LABlab(21.18, 39.27, -37.38)
CIE-LCHlch(21.18, 54.22, 316.42°)
OKLaboklab(33.81% 0.0891 -0.1059)
OKLCHoklch(33.81% 0.138 310.1)
XYZxyz(6.0405, 3.2927, 14.2244)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D186B #366B18
analogous
#23186B #4D186B #6B185F
triadic
#4D186B #6B4D18 #186B4D
tetradic
#4D186B #6B2318 #366B18 #185F6B
square
#4D186B #6B2318 #366B18 #185F6B
split-complementary
#4D186B #5F6B18 #186B23
monochromatic
#120619 #290D39 #4D186B #71239D #952ECF

Accessibility & contrast

On white

12.66
#4D186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D186B
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D186B#FFFFFF#000000##FFFFFF
##4D186B1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#053469
Tritanopia (blue-blind)
#492B40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d186b;
/* rgb */ color: rgb(77, 24, 107);
/* oklch */ color: oklch(33.8% 0.138 310.1);
Tailwind
colors: {
  custom: {
    50: '#825b96',
    500: '#4d186b',
    950: '#000000',
  },
}
SCSS
$custom: #4d186b;
$custom-light: #825b96;
$custom-dark: #000000;
JSON
{
  "hex": "#4d186b",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 278.313,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33805,
    "c": 0.13836,
    "h": 310.1
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#4D186B
secondary
#62A13E
accent
#E6417D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D186B

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

Preview Lab → · Contrast checker → · Palette generator →

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