#4D1F8A#4D1F8A

#4D1F8A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.164 H 297.2°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4D1F8A
RGBrgb(77, 31, 138)
HSLhsl(266, 63%, 33%)
HSVhsv(266, 78%, 54%)
CMYKcmyk(44.2%, 77.5%, 0%, 45.9%)
CIE-LABlab(24.93, 43.95, -51.01)
CIE-LCHlch(24.93, 67.33, 310.75°)
OKLaboklab(37.27% 0.075 -0.146)
OKLCHoklch(37.27% 0.164 297.2)
XYZxyz(8.1368, 4.3926, 24.4590)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F8A #5C8A1F
analogous
#1F278A #4D1F8A #821F8A
triadic
#4D1F8A #8A4D1F #1F8A4D
tetradic
#4D1F8A #8A1F27 #5C8A1F #1F8A82
square
#4D1F8A #8A1F27 #5C8A1F #1F8A82
split-complementary
#4D1F8A #8A821F #278A1F
monochromatic
#150926 #311458 #4D1F8A #692ABC #884CD7

Accessibility & contrast

On white

11.18
#4D1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4D1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F8A
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F8A#FFFFFF#000000##FFFFFF
##4D1F8A1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1f8a;
/* rgb */ color: rgb(77, 31, 138);
/* oklch */ color: oklch(37.3% 0.164 297.2);
Tailwind
colors: {
  custom: {
    50: '#8560ad',
    500: '#4d1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f8a;
$custom-light: #8560ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f8a",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 265.794,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37267,
    "c": 0.16414,
    "h": 297.2
  },
  "luminance": 0.04393
}

Semantic roles & 50–950 ramp

primary
#4D1F8A
secondary
#8ABA4B
accent
#E6419F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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