#4D1F86#4D1F86

#4D1F86 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.160 H 298.4°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#4D1F86
RGBrgb(77, 31, 134)
HSLhsl(267, 62%, 32%)
HSVhsv(267, 77%, 53%)
CMYKcmyk(42.5%, 76.9%, 0%, 47.5%)
CIE-LABlab(24.57, 42.88, -49.09)
CIE-LCHlch(24.57, 65.19, 311.14°)
OKLaboklab(36.91% 0.076 -0.1404)
OKLCHoklch(36.91% 0.16 298.4)
XYZxyz(7.8525, 4.2789, 22.9618)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F86 #58861F
analogous
#1F2586 #4D1F86 #801F86
triadic
#4D1F86 #864D1F #1F864D
tetradic
#4D1F86 #861F25 #58861F #1F8680
square
#4D1F86 #861F25 #58861F #1F8680
split-complementary
#4D1F86 #86801F #25861F
monochromatic
#140823 #301454 #4D1F86 #6A2AB8 #884AD5

Accessibility & contrast

On white

11.32
#4D1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4D1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F86
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F86#FFFFFF#000000##FFFFFF
##4D1F861.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1f86;
/* rgb */ color: rgb(77, 31, 134);
/* oklch */ color: oklch(36.9% 0.160 298.4);
Tailwind
colors: {
  custom: {
    50: '#8560aa',
    500: '#4d1f86',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f86;
$custom-light: #8560aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f86",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 266.796,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36907,
    "c": 0.15965,
    "h": 298.4
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#4D1F86
secondary
#86B849
accent
#E5429D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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