#4D1D82#4D1D82

#4D1D82 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.157 H 300.1°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#4D1D82
RGBrgb(77, 29, 130)
HSLhsl(269, 64%, 31%)
HSVhsv(269, 78%, 51%)
CMYKcmyk(40.8%, 77.7%, 0%, 49%)
CIE-LABlab(23.90, 42.76, -47.68)
CIE-LCHlch(23.90, 64.05, 311.89°)
OKLaboklab(36.32% 0.0789 -0.1362)
OKLCHoklch(36.32% 0.157 300.1)
XYZxyz(7.5282, 4.0681, 21.5034)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D82 #52821D
analogous
#1D1F82 #4D1D82 #7F1D82
triadic
#4D1D82 #824D1D #1D824D
tetradic
#4D1D82 #821D1F #52821D #1D827F
square
#4D1D82 #821D1F #52821D #1D827F
split-complementary
#4D1D82 #827F1D #1F821D
monochromatic
#12071E #2F1250 #4D1D82 #6B28B4 #8944D5

Accessibility & contrast

On white

11.58
#4D1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D82
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D82#FFFFFF#000000##FFFFFF
##4D1D821.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#41374E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1d82;
/* rgb */ color: rgb(77, 29, 130);
/* oklch */ color: oklch(36.3% 0.157 300.1);
Tailwind
colors: {
  custom: {
    50: '#845ea7',
    500: '#4d1d82',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d82;
$custom-light: #845ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d82",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 268.515,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36322,
    "c": 0.15744,
    "h": 300.1
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

primary
#4D1D82
secondary
#80B546
accent
#E74198
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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