#4D1F8B#4D1F8B

#4D1F8B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.165 H 296.9°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#4D1F8B
RGBrgb(77, 31, 139)
HSLhsl(266, 64%, 33%)
HSVhsv(266, 78%, 55%)
CMYKcmyk(44.6%, 77.7%, 0%, 45.5%)
CIE-LABlab(25.02, 44.21, -51.49)
CIE-LCHlch(25.02, 67.86, 310.65°)
OKLaboklab(37.36% 0.0747 -0.1474)
OKLCHoklch(37.36% 0.165 296.9)
XYZxyz(8.2095, 4.4217, 24.8420)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F8B #5D8B1F
analogous
#1F278B #4D1F8B #831F8B
triadic
#4D1F8B #8B4D1F #1F8B4D
tetradic
#4D1F8B #8B1F27 #5D8B1F #1F8B83
square
#4D1F8B #8B1F27 #5D8B1F #1F8B83
split-complementary
#4D1F8B #8B831F #278B1F
monochromatic
#160927 #311459 #4D1F8B #692ABD #884DD7

Accessibility & contrast

On white

11.14
#4D1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1F8B
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F8B#FFFFFF#000000##FFFFFF
##4D1F8B1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#3D3C54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1f8b;
/* rgb */ color: rgb(77, 31, 139);
/* oklch */ color: oklch(37.4% 0.165 296.9);
Tailwind
colors: {
  custom: {
    50: '#8560ae',
    500: '#4d1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f8b;
$custom-light: #8560ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f8b",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 265.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37358,
    "c": 0.16526,
    "h": 296.9
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#4D1F8B
secondary
#8BBA4C
accent
#E741A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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