#4D1A8B#4D1A8B

#4D1A8B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.170 H 297.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4D1A8B
RGBrgb(77, 26, 139)
HSLhsl(267, 68%, 32%)
HSVhsv(267, 81%, 55%)
CMYKcmyk(44.6%, 81.3%, 0%, 45.5%)
CIE-LABlab(24.26, 46.40, -52.73)
CIE-LCHlch(24.26, 70.24, 311.35°)
OKLaboklab(36.83% 0.0789 -0.151)
OKLCHoklch(36.83% 0.17 297.6)
XYZxyz(8.0889, 4.1805, 24.8018)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A8B #588B1A
analogous
#1A1F8B #4D1A8B #861A8B
triadic
#4D1A8B #8B4D1A #1A8B4D
tetradic
#4D1A8B #8B1A1F #588B1A #1A8B86
square
#4D1A8B #8B1A1F #588B1A #1A8B86
split-complementary
#4D1A8B #8B861A #1F8B1A
monochromatic
#140724 #301057 #4D1A8B #6A24BF #8843DC

Accessibility & contrast

On white

11.44
#4D1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A8B
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A8B#FFFFFF#000000##FFFFFF
##4D1A8B1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#3D3A53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1a8b;
/* rgb */ color: rgb(77, 26, 139);
/* oklch */ color: oklch(36.8% 0.170 297.6);
Tailwind
colors: {
  custom: {
    50: '#865eae',
    500: '#4d1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a8b;
$custom-light: #865eae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a8b",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 267.08,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36828,
    "c": 0.17039,
    "h": 297.6
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#4D1A8B
secondary
#86BD44
accent
#EB3C9C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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