#4D2185#4D2185

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

Color values

HEX#4D2185
RGBrgb(77, 33, 133)
HSLhsl(266, 60%, 33%)
HSVhsv(266, 75%, 52%)
CMYKcmyk(42.1%, 75.2%, 0%, 47.8%)
CIE-LABlab(24.82, 41.66, -48.06)
CIE-LCHlch(24.82, 63.60, 310.92°)
OKLaboklab(37.06% 0.0743 -0.1373)
OKLCHoklch(37.06% 0.156 298.4)
XYZxyz(7.8370, 4.3588, 22.6142)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2185 #598521
analogous
#212785 #4D2185 #7F2185
triadic
#4D2185 #854D21 #21854D
tetradic
#4D2185 #852127 #598521 #21857F
square
#4D2185 #852127 #598521 #21857F
split-complementary
#4D2185 #857F21 #278521
monochromatic
#140923 #311554 #4D2185 #692DB6 #884DD3

Accessibility & contrast

On white

11.22
#4D2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4D2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2185
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2185#FFFFFF#000000##FFFFFF
##4D21851.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003A83
Tritanopia (blue-blind)
#3F3A51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2185;
/* rgb */ color: rgb(77, 33, 133);
/* oklch */ color: oklch(37.1% 0.156 298.4);
Tailwind
colors: {
  custom: {
    50: '#8461a9',
    500: '#4d2185',
    950: '#000000',
  },
}
SCSS
$custom: #4d2185;
$custom-light: #8461a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2185",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 266.4,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37057,
    "c": 0.15617,
    "h": 298.4
  },
  "luminance": 0.04359
}

Semantic roles & 50–950 ramp

primary
#4D2185
secondary
#87B64C
accent
#E3449D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D2185

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

Preview Lab → · Contrast checker → · Palette generator →

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