#4D1F8D#4D1F8D

#4D1F8D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.168 H 296.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#4D1F8D
RGBrgb(77, 31, 141)
HSLhsl(265, 64%, 34%)
HSVhsv(265, 78%, 55%)
CMYKcmyk(45.4%, 78%, 0%, 44.7%)
CIE-LABlab(25.20, 44.74, -52.43)
CIE-LCHlch(25.20, 68.93, 310.48°)
OKLaboklab(37.54% 0.0742 -0.1502)
OKLCHoklch(37.54% 0.168 296.3)
XYZxyz(8.3570, 4.4807, 25.6187)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F8D #5F8D1F
analogous
#1F288D #4D1F8D #841F8D
triadic
#4D1F8D #8D4D1F #1F8D4D
tetradic
#4D1F8D #8D1F28 #5F8D1F #1F8D84
square
#4D1F8D #8D1F28 #5F8D1F #1F8D84
split-complementary
#4D1F8D #8D841F #288D1F
monochromatic
#160929 #32145B #4D1F8D #682ABF #884ED8

Accessibility & contrast

On white

11.07
#4D1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4D1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F8D
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F8D#FFFFFF#000000##FFFFFF
##4D1F8D1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#3C3D55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d1f8d;
/* rgb */ color: rgb(77, 31, 141);
/* oklch */ color: oklch(37.5% 0.168 296.3);
Tailwind
colors: {
  custom: {
    50: '#8660af',
    500: '#4d1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f8d;
$custom-light: #8660af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f8d",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 265.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37542,
    "c": 0.1675,
    "h": 296.3
  },
  "luminance": 0.04481
}

Semantic roles & 50–950 ramp

primary
#4D1F8D
secondary
#8DBB4D
accent
#E741A1
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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