#4D1D8B#4D1D8B

#4D1D8B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.167 H 297.2°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#4D1D8B
RGBrgb(77, 29, 139)
HSLhsl(266, 65%, 33%)
HSVhsv(266, 79%, 55%)
CMYKcmyk(44.6%, 79.1%, 0%, 45.5%)
CIE-LABlab(24.70, 45.12, -52.00)
CIE-LCHlch(24.70, 68.85, 310.94°)
OKLaboklab(37.14% 0.0765 -0.1489)
OKLCHoklch(37.14% 0.167 297.2)
XYZxyz(8.1589, 4.3204, 24.8252)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D8B #5B8B1D
analogous
#1D248B #4D1D8B #841D8B
triadic
#4D1D8B #8B4D1D #1D8B4D
tetradic
#4D1D8B #8B1D24 #5B8B1D #1D8B84
square
#4D1D8B #8B1D24 #5B8B1D #1D8B84
split-complementary
#4D1D8B #8B841D #248B1D
monochromatic
#150826 #311258 #4D1D8B #6928BE #8849D9

Accessibility & contrast

On white

11.26
#4D1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1D8B
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D8B#FFFFFF#000000##FFFFFF
##4D1D8B1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#3D3B53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1d8b;
/* rgb */ color: rgb(77, 29, 139);
/* oklch */ color: oklch(37.1% 0.167 297.2);
Tailwind
colors: {
  custom: {
    50: '#855fae',
    500: '#4d1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d8b;
$custom-light: #855fae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d8b",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 266.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37138,
    "c": 0.16739,
    "h": 297.2
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#4D1D8B
secondary
#89BB49
accent
#E83F9F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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