#4D1D86#4D1D86

#4D1D86 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.162 H 298.8°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4D1D86
RGBrgb(77, 29, 134)
HSLhsl(267, 64%, 32%)
HSVhsv(267, 78%, 53%)
CMYKcmyk(42.5%, 78.4%, 0%, 47.5%)
CIE-LABlab(24.25, 43.81, -49.62)
CIE-LCHlch(24.25, 66.19, 311.44°)
OKLaboklab(36.68% 0.0779 -0.1419)
OKLCHoklch(36.68% 0.162 298.8)
XYZxyz(7.8019, 4.1776, 22.9449)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D86 #56861D
analogous
#1D2186 #4D1D86 #821D86
triadic
#4D1D86 #864D1D #1D864D
tetradic
#4D1D86 #861D21 #56861D #1D8682
square
#4D1D86 #861D21 #56861D #1D8682
split-complementary
#4D1D86 #86821D #21861D
monochromatic
#130721 #301254 #4D1D86 #6A28B8 #8946D7

Accessibility & contrast

On white

11.44
#4D1D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D1D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D86
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D86#FFFFFF#000000##FFFFFF
##4D1D861.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#3F3951
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1d86;
/* rgb */ color: rgb(77, 29, 134);
/* oklch */ color: oklch(36.7% 0.162 298.8);
Tailwind
colors: {
  custom: {
    50: '#855faa',
    500: '#4d1d86',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d86;
$custom-light: #855faa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d86",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 267.429,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3668,
    "c": 0.16187,
    "h": 298.8
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#4D1D86
secondary
#84B946
accent
#E7409B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1D86

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

Preview Lab → · Contrast checker → · Palette generator →

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