#4D1D8E#4D1D8E

#4D1D8E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.171 H 296.3°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#4D1D8E
RGBrgb(77, 29, 142)
HSLhsl(265, 66%, 34%)
HSVhsv(265, 80%, 56%)
CMYKcmyk(45.8%, 79.6%, 0%, 44.3%)
CIE-LABlab(24.98, 45.91, -53.42)
CIE-LCHlch(24.98, 70.43, 310.68°)
OKLaboklab(37.42% 0.0756 -0.153)
OKLCHoklch(37.42% 0.171 296.3)
XYZxyz(8.3811, 4.4093, 25.9954)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D8E #5E8E1D
analogous
#1D258E #4D1D8E #851D8E
triadic
#4D1D8E #8E4D1D #1D8E4D
tetradic
#4D1D8E #8E1D25 #5E8E1D #1D8E85
square
#4D1D8E #8E1D25 #5E8E1D #1D8E85
split-complementary
#4D1D8E #8E851D #258E1D
monochromatic
#160828 #31135B #4D1D8E #6927C1 #884BDA

Accessibility & contrast

On white

11.16
#4D1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4D1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D8E
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D8E#FFFFFF#000000##FFFFFF
##4D1D8E1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#3B3C55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1d8e;
/* rgb */ color: rgb(77, 29, 142);
/* oklch */ color: oklch(37.4% 0.171 296.3);
Tailwind
colors: {
  custom: {
    50: '#865fb0',
    500: '#4d1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d8e;
$custom-light: #865fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d8e",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 265.487,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37416,
    "c": 0.17069,
    "h": 296.3
  },
  "luminance": 0.0441
}

Semantic roles & 50–950 ramp

primary
#4D1D8E
secondary
#8CBD4A
accent
#E93FA1
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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