#4D1A8D#4D1A8D

#4D1A8D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.173 H 297.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4D1A8D
RGBrgb(77, 26, 141)
HSLhsl(267, 69%, 33%)
HSVhsv(267, 82%, 55%)
CMYKcmyk(45.4%, 81.6%, 0%, 44.7%)
CIE-LABlab(24.45, 46.92, -53.67)
CIE-LCHlch(24.45, 71.28, 311.16°)
OKLaboklab(37.02% 0.0783 -0.1538)
OKLCHoklch(37.02% 0.173 297)
XYZxyz(8.2364, 4.2395, 25.5785)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A8D #5A8D1A
analogous
#1A208D #4D1A8D #861A8D
triadic
#4D1A8D #8D4D1A #1A8D4D
tetradic
#4D1A8D #8D1A20 #5A8D1A #1A8D86
square
#4D1A8D #8D1A20 #5A8D1A #1A8D86
split-complementary
#4D1A8D #8D861A #208D1A
monochromatic
#150726 #311059 #4D1A8D #6924C1 #8845DD

Accessibility & contrast

On white

11.36
#4D1A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4D1A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A8D
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A8D#FFFFFF#000000##FFFFFF
##4D1A8D1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#3C3B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1a8d;
/* rgb */ color: rgb(77, 26, 141);
/* oklch */ color: oklch(37.0% 0.173 297.0);
Tailwind
colors: {
  custom: {
    50: '#865eaf',
    500: '#4d1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a8d;
$custom-light: #865eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a8d",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 266.609,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37016,
    "c": 0.17253,
    "h": 297
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#4D1A8D
secondary
#88BE45
accent
#EC3C9E
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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