#4D3586#4D3586

#4D3586 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.1% C 0.130 H 293.3°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#4D3586
RGBrgb(77, 53, 134)
HSLhsl(258, 43%, 37%)
HSVhsv(258, 60%, 53%)
CMYKcmyk(42.5%, 60.4%, 0%, 47.5%)
CIE-LABlab(29.02, 30.74, -41.88)
CIE-LCHlch(29.02, 51.95, 306.28°)
OKLaboklab(40.1% 0.0514 -0.1192)
OKLCHoklch(40.1% 0.13 293.3)
XYZxyz(8.6356, 5.8450, 23.2228)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3586 #6E8635
analogous
#354686 #4D3586 #763586
triadic
#4D3586 #864D35 #35864D
tetradic
#4D3586 #863546 #6E8635 #358676
square
#4D3586 #863546 #6E8635 #358676
split-complementary
#4D3586 #867635 #468635
monochromatic
#1B122E #34245A #4D3586 #6646B2 #896FC6

Accessibility & contrast

On white

9.68
#4D3586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4D3586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3586
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3586#FFFFFF#000000##FFFFFF
##4D35861.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#0C4384
Tritanopia (blue-blind)
#3E4758
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d3586;
/* rgb */ color: rgb(77, 53, 134);
/* oklch */ color: oklch(40.1% 0.130 293.3);
Tailwind
colors: {
  custom: {
    50: '#836daa',
    500: '#4d3586',
    950: '#000000',
  },
}
SCSS
$custom: #4d3586;
$custom-light: #836daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3586",
  "rgb": {
    "r": 77,
    "g": 53,
    "b": 134
  },
  "hsl": {
    "h": 257.778,
    "s": 43.316,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40104,
    "c": 0.12984,
    "h": 293.3
  },
  "luminance": 0.05845
}

Semantic roles & 50–950 ramp

primary
#4D3586
secondary
#9AAE68
accent
#D355AE
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D3586

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

Preview Lab → · Contrast checker → · Palette generator →

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