#4D2186#4D2186

#4D2186 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.157 H 298.1°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#4D2186
RGBrgb(77, 33, 134)
HSLhsl(266, 60%, 33%)
HSVhsv(266, 75%, 53%)
CMYKcmyk(42.5%, 75.4%, 0%, 47.5%)
CIE-LABlab(24.91, 41.93, -48.54)
CIE-LCHlch(24.91, 64.14, 310.82°)
OKLaboklab(37.15% 0.0741 -0.1388)
OKLCHoklch(37.15% 0.157 298.1)
XYZxyz(7.9064, 4.3866, 22.9798)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2186 #5A8621
analogous
#212786 #4D2186 #802186
triadic
#4D2186 #864D21 #21864D
tetradic
#4D2186 #862127 #5A8621 #218680
square
#4D2186 #862127 #5A8621 #218680
split-complementary
#4D2186 #868021 #278621
monochromatic
#150924 #311555 #4D2186 #692DB7 #884ED3

Accessibility & contrast

On white

11.19
#4D2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4D2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2186
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2186#FFFFFF#000000##FFFFFF
##4D21861.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#3F3B51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2186;
/* rgb */ color: rgb(77, 33, 134);
/* oklch */ color: oklch(37.1% 0.157 298.1);
Tailwind
colors: {
  custom: {
    50: '#8561aa',
    500: '#4d2186',
    950: '#000000',
  },
}
SCSS
$custom: #4d2186;
$custom-light: #8561aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2186",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 266.139,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37145,
    "c": 0.15732,
    "h": 298.1
  },
  "luminance": 0.04387
}

Semantic roles & 50–950 ramp

primary
#4D2186
secondary
#88B74C
accent
#E4449E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D2186

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

Preview Lab → · Contrast checker → · Palette generator →

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