#4D1F8F#4D1F8F

#4D1F8F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.170 H 295.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#4D1F8F
RGBrgb(77, 31, 143)
HSLhsl(265, 64%, 34%)
HSVhsv(265, 78%, 56%)
CMYKcmyk(46.2%, 78.3%, 0%, 43.9%)
CIE-LABlab(25.38, 45.28, -53.38)
CIE-LCHlch(25.38, 69.99, 310.31°)
OKLaboklab(37.73% 0.0736 -0.1529)
OKLCHoklch(37.73% 0.17 295.7)
XYZxyz(8.5071, 4.5407, 26.4095)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F8F #618F1F
analogous
#1F298F #4D1F8F #851F8F
triadic
#4D1F8F #8F4D1F #1F8F4D
tetradic
#4D1F8F #8F1F29 #618F1F #1F8F85
square
#4D1F8F #8F1F29 #618F1F #1F8F85
split-complementary
#4D1F8F #8F851F #298F1F
monochromatic
#17092A #32145D #4D1F8F #682AC1 #884FD9

Accessibility & contrast

On white

11.01
#4D1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F8F
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F8F#FFFFFF#000000##FFFFFF
##4D1F8F1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#3A3E56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d1f8f;
/* rgb */ color: rgb(77, 31, 143);
/* oklch */ color: oklch(37.7% 0.170 295.7);
Tailwind
colors: {
  custom: {
    50: '#8660b1',
    500: '#4d1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f8f;
$custom-light: #8660b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f8f",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 264.643,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37726,
    "c": 0.16973,
    "h": 295.7
  },
  "luminance": 0.04541
}

Semantic roles & 50–950 ramp

primary
#4D1F8F
secondary
#8FBC4E
accent
#E740A3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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