#4D1D7E#4D1D7E

#4D1D7E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.153 H 301.5°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4D1D7E
RGBrgb(77, 29, 126)
HSLhsl(270, 63%, 30%)
HSVhsv(270, 77%, 49%)
CMYKcmyk(38.9%, 77%, 0%, 50.6%)
CIE-LABlab(23.55, 41.73, -45.72)
CIE-LCHlch(23.55, 61.90, 312.38°)
OKLaboklab(35.97% 0.0799 -0.1305)
OKLCHoklch(35.97% 0.153 301.5)
XYZxyz(7.2649, 3.9628, 20.1168)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D7E #4E7E1D
analogous
#1D1D7E #4D1D7E #7E1D7E
triadic
#4D1D7E #7E4D1D #1D7E4D
tetradic
#4D1D7E #7E1D1D #4E7E1D #1D7E7E
square
#4D1D7E #7E1D1D #4E7E1D #1D7E7E
split-complementary
#4D1D7E #7E7E1D #1D7E1D
monochromatic
#10061B #2F124C #4D1D7E #6B28B0 #8A42D3

Accessibility & contrast

On white

11.71
#4D1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4D1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D7E
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D7E#FFFFFF#000000##FFFFFF
##4D1D7E1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#42364C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1d7e;
/* rgb */ color: rgb(77, 29, 126);
/* oklch */ color: oklch(36.0% 0.153 301.5);
Tailwind
colors: {
  custom: {
    50: '#845ea4',
    500: '#4d1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d7e;
$custom-light: #845ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d7e",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 269.691,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.153,
    "h": 301.5
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#4D1D7E
secondary
#7CB145
accent
#E64295
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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