#4D186F#4D186F

#4D186F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.143 H 308.2°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4D186F
RGBrgb(77, 24, 111)
HSLhsl(277, 64%, 26%)
HSVhsv(277, 78%, 44%)
CMYKcmyk(30.6%, 78.4%, 0%, 56.5%)
CIE-LABlab(21.50, 40.23, -39.45)
CIE-LCHlch(21.50, 56.35, 315.56°)
OKLaboklab(34.13% 0.0883 -0.112)
OKLCHoklch(34.13% 0.143 308.2)
XYZxyz(6.2558, 3.3788, 15.3585)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D186F #3A6F18
analogous
#22186F #4D186F #6F1866
triadic
#4D186F #6F4D18 #186F4D
tetradic
#4D186F #6F2218 #3A6F18 #18666F
square
#4D186F #6F2218 #3A6F18 #18666F
split-complementary
#4D186F #666F18 #186F22
monochromatic
#110519 #2A0D3D #4D186F #7023A1 #922FD2

Accessibility & contrast

On white

12.53
#4D186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D186F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D186F#FFFFFF#000000##FFFFFF
##4D186F1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#482D42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d186f;
/* rgb */ color: rgb(77, 24, 111);
/* oklch */ color: oklch(34.1% 0.143 308.2);
Tailwind
colors: {
  custom: {
    50: '#835b99',
    500: '#4d186f',
    950: '#000000',
  },
}
SCSS
$custom: #4d186f;
$custom-light: #835b99;
$custom-dark: #000000;
JSON
{
  "hex": "#4d186f",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 276.552,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34133,
    "c": 0.1426,
    "h": 308.2
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#4D186F
secondary
#66A53E
accent
#E74082
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D186F

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

Preview Lab → · Contrast checker → · Palette generator →

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