#4D1F9F#4D1F9F

#4D1F9F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.187 H 291.5°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4D1F9F
RGBrgb(77, 31, 159)
HSLhsl(262, 67%, 37%)
HSVhsv(262, 81%, 62%)
CMYKcmyk(51.6%, 80.5%, 0%, 37.6%)
CIE-LABlab(26.91, 49.57, -60.71)
CIE-LCHlch(26.91, 78.38, 309.23°)
OKLaboklab(39.25% 0.0687 -0.1744)
OKLCHoklch(39.25% 0.187 291.5)
XYZxyz(9.8068, 5.0606, 33.2542)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F9F #719F1F
analogous
#1F319F #4D1F9F #8D1F9F
triadic
#4D1F9F #9F4D1F #1F9F4D
tetradic
#4D1F9F #9F1F31 #719F1F #1F9F8D
square
#4D1F9F #9F1F31 #719F1F #1F9F8D
split-complementary
#4D1F9F #9F8D1F #319F1F
monochromatic
#1B0B39 #34156C #4D1F9F #6629D2 #895ADF

Accessibility & contrast

On white

10.44
#4D1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4D1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F9F
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F9F#FFFFFF#000000##FFFFFF
##4D1F9F1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#31445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d1f9f;
/* rgb */ color: rgb(77, 31, 159);
/* oklch */ color: oklch(39.3% 0.187 291.5);
Tailwind
colors: {
  custom: {
    50: '#8861bd',
    500: '#4d1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f9f;
$custom-light: #8861bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f9f",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 261.563,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39251,
    "c": 0.18747,
    "h": 291.5
  },
  "luminance": 0.05061
}

Semantic roles & 50–950 ramp

primary
#4D1F9F
secondary
#9CC357
accent
#EA3EAC
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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