#4D186D#4D186D

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

Color values

HEX#4D186D
RGBrgb(77, 24, 109)
HSLhsl(277, 64%, 26%)
HSVhsv(277, 78%, 43%)
CMYKcmyk(29.4%, 78%, 0%, 57.3%)
CIE-LABlab(21.34, 39.75, -38.42)
CIE-LCHlch(21.34, 55.28, 315.98°)
OKLaboklab(33.97% 0.0887 -0.109)
OKLCHoklch(33.97% 0.14 309.1)
XYZxyz(6.1470, 3.3353, 14.7850)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D186D #386D18
analogous
#22186D #4D186D #6D1862
triadic
#4D186D #6D4D18 #186D4D
tetradic
#4D186D #6D2218 #386D18 #18626D
square
#4D186D #6D2218 #386D18 #18626D
split-complementary
#4D186D #626D18 #186D22
monochromatic
#120619 #2A0D3B #4D186D #70239F #942ED1

Accessibility & contrast

On white

12.60
#4D186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D186D
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D186D#FFFFFF#000000##FFFFFF
##4D186D1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#01346B
Tritanopia (blue-blind)
#482C41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d186d;
/* rgb */ color: rgb(77, 24, 109);
/* oklch */ color: oklch(34.0% 0.140 309.1);
Tailwind
colors: {
  custom: {
    50: '#835b97',
    500: '#4d186d',
    950: '#000000',
  },
}
SCSS
$custom: #4d186d;
$custom-light: #835b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4d186d",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 277.412,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33968,
    "c": 0.14048,
    "h": 309.1
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#4D186D
secondary
#64A33E
accent
#E7417F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D186D

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

Preview Lab → · Contrast checker → · Palette generator →

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