#4D1686#4D1686

#4D1686 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.169 H 299.7°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#4D1686
RGBrgb(77, 22, 134)
HSLhsl(269, 72%, 31%)
HSVhsv(269, 84%, 53%)
CMYKcmyk(42.5%, 83.6%, 0%, 47.5%)
CIE-LABlab(23.25, 46.71, -51.26)
CIE-LCHlch(23.25, 69.35, 312.34°)
OKLaboklab(35.98% 0.0836 -0.1467)
OKLCHoklch(35.98% 0.169 299.7)
XYZxyz(7.6495, 3.8727, 22.8941)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1686 #4F8616
analogous
#161786 #4D1686 #851686
triadic
#4D1686 #864D16 #16864D
tetradic
#4D1686 #861617 #4F8616 #168685
square
#4D1686 #861617 #4F8616 #168685
split-complementary
#4D1686 #868516 #178616
monochromatic
#11051D #2F0D51 #4D1686 #6B1FBB #8A38DE

Accessibility & contrast

On white

11.83
#4D1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4D1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1686
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1686#FFFFFF#000000##FFFFFF
##4D16861.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#3F364F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1686;
/* rgb */ color: rgb(77, 22, 134);
/* oklch */ color: oklch(36.0% 0.169 299.7);
Tailwind
colors: {
  custom: {
    50: '#855baa',
    500: '#4d1686',
    950: '#000000',
  },
}
SCSS
$custom: #4d1686;
$custom-light: #855baa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1686",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 269.464,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35981,
    "c": 0.16883,
    "h": 299.7
  },
  "luminance": 0.03873
}

Semantic roles & 50–950 ramp

primary
#4D1686
secondary
#7DBA3E
accent
#EF3996
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1686

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

Preview Lab → · Contrast checker → · Palette generator →

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