#4D1B8D#4D1B8D

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

Color values

HEX#4D1B8D
RGBrgb(77, 27, 141)
HSLhsl(266, 68%, 33%)
HSVhsv(266, 81%, 55%)
CMYKcmyk(45.4%, 80.9%, 0%, 44.7%)
CIE-LABlab(24.59, 46.50, -53.43)
CIE-LCHlch(24.59, 70.83, 311.03°)
OKLaboklab(37.12% 0.0775 -0.1531)
OKLCHoklch(37.12% 0.172 296.8)
XYZxyz(8.2589, 4.2846, 25.5860)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B8D #5B8D1B
analogous
#1B228D #4D1B8D #861B8D
triadic
#4D1B8D #8D4D1B #1B8D4D
tetradic
#4D1B8D #8D1B22 #5B8D1B #1B8D86
square
#4D1B8D #8D1B22 #5B8D1B #1B8D86
split-complementary
#4D1B8D #8D861B #228D1B
monochromatic
#150726 #31115A #4D1B8D #6925C0 #8847DC

Accessibility & contrast

On white

11.31
#4D1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1B8D
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B8D#FFFFFF#000000##FFFFFF
##4D1B8D1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.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: #4d1b8d;
/* rgb */ color: rgb(77, 27, 141);
/* oklch */ color: oklch(37.1% 0.172 296.8);
Tailwind
colors: {
  custom: {
    50: '#865eaf',
    500: '#4d1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b8d;
$custom-light: #865eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b8d",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 266.316,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37116,
    "c": 0.17157,
    "h": 296.8
  },
  "luminance": 0.04285
}

Semantic roles & 50–950 ramp

primary
#4D1B8D
secondary
#89BD46
accent
#EB3D9F
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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