#4D1B7F#4D1B7F

#4D1B7F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.156 H 301.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4D1B7F
RGBrgb(77, 27, 127)
HSLhsl(270, 65%, 30%)
HSVhsv(270, 79%, 50%)
CMYKcmyk(39.4%, 78.7%, 0%, 50.2%)
CIE-LABlab(23.32, 42.89, -46.73)
CIE-LCHlch(23.32, 63.43, 312.55°)
OKLaboklab(35.83% 0.0816 -0.1334)
OKLCHoklch(35.83% 0.156 301.4)
XYZxyz(7.2823, 3.8939, 20.4425)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B7F #4D7F1B
analogous
#1B1B7F #4D1B7F #7F1B7F
triadic
#4D1B7F #7F4D1B #1B7F4D
tetradic
#4D1B7F #7F1B1B #4D7F1B #1B7F7F
square
#4D1B7F #7F1B1B #4D7F1B #1B7F7F
split-complementary
#4D1B7F #7F7F1B #1B7F1B
monochromatic
#10061A #2E104D #4D1B7F #6C26B1 #8A3ED6

Accessibility & contrast

On white

11.81
#4D1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4D1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B7F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B7F#FFFFFF#000000##FFFFFF
##4D1B7F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#42354C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1b7f;
/* rgb */ color: rgb(77, 27, 127);
/* oklch */ color: oklch(35.8% 0.156 301.4);
Tailwind
colors: {
  custom: {
    50: '#845da5',
    500: '#4d1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b7f;
$custom-light: #845da5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b7f",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 270,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35834,
    "c": 0.15637,
    "h": 301.4
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#4D1B7F
secondary
#7BB343
accent
#E84094
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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