#4D1D7D#4D1D7D

#4D1D7D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.152 H 301.9°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#4D1D7D
RGBrgb(77, 29, 125)
HSLhsl(270, 62%, 30%)
HSVhsv(270, 77%, 49%)
CMYKcmyk(38.4%, 76.8%, 0%, 51%)
CIE-LABlab(23.46, 41.47, -45.23)
CIE-LCHlch(23.46, 61.36, 312.52°)
OKLaboklab(35.88% 0.0802 -0.129)
OKLCHoklch(35.88% 0.152 301.9)
XYZxyz(7.2007, 3.9371, 19.7786)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D7D #4D7D1D
analogous
#1D1D7D #4D1D7D #7D1D7D
triadic
#4D1D7D #7D4D1D #1D7D4D
tetradic
#4D1D7D #7D1D1D #4D7D1D #1D7D7D
square
#4D1D7D #7D1D1D #4D7D1D #1D7D7D
split-complementary
#4D1D7D #7D7D1D #1D7D1D
monochromatic
#10061A #2E114B #4D1D7D #6C29AF #8A41D3

Accessibility & contrast

On white

11.75
#4D1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1D7D
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D7D#FFFFFF#000000##FFFFFF
##4D1D7D1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#43354B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1d7d;
/* rgb */ color: rgb(77, 29, 125);
/* oklch */ color: oklch(35.9% 0.152 301.9);
Tailwind
colors: {
  custom: {
    50: '#845ea3',
    500: '#4d1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d7d;
$custom-light: #845ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d7d",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 270,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35882,
    "c": 0.15188,
    "h": 301.9
  },
  "luminance": 0.03937
}

Semantic roles & 50–950 ramp

primary
#4D1D7D
secondary
#7BB145
accent
#E54294
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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