#4D1C8D#4D1C8D

#4D1C8D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.171 H 296.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#4D1C8D
RGBrgb(77, 28, 141)
HSLhsl(266, 67%, 33%)
HSVhsv(266, 80%, 55%)
CMYKcmyk(45.4%, 80.1%, 0%, 44.7%)
CIE-LABlab(24.74, 46.08, -53.19)
CIE-LCHlch(24.74, 70.38, 310.90°)
OKLaboklab(37.22% 0.0767 -0.1524)
OKLCHoklch(37.22% 0.171 296.7)
XYZxyz(8.2823, 4.3312, 25.5938)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C8D #5C8D1C
analogous
#1C238D #4D1C8D #851C8D
triadic
#4D1C8D #8D4D1C #1C8D4D
tetradic
#4D1C8D #8D1C23 #5C8D1C #1C8D85
square
#4D1C8D #8D1C23 #5C8D1C #1C8D85
split-complementary
#4D1C8D #8D851C #238D1C
monochromatic
#150827 #31125A #4D1C8D #6926C0 #8849DB

Accessibility & contrast

On white

11.25
#4D1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4D1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C8D
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C8D#FFFFFF#000000##FFFFFF
##4D1C8D1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1c8d;
/* rgb */ color: rgb(77, 28, 141);
/* oklch */ color: oklch(37.2% 0.171 296.7);
Tailwind
colors: {
  custom: {
    50: '#865faf',
    500: '#4d1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c8d;
$custom-light: #865faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c8d",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 266.018,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37218,
    "c": 0.17059,
    "h": 296.7
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#4D1C8D
secondary
#8ABD48
accent
#EA3E9F
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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