#4D1B82#4D1B82

#4D1B82 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.160 H 300.4°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#4D1B82
RGBrgb(77, 27, 130)
HSLhsl(269, 66%, 31%)
HSVhsv(269, 79%, 51%)
CMYKcmyk(40.8%, 79.2%, 0%, 49%)
CIE-LABlab(23.58, 43.66, -48.19)
CIE-LCHlch(23.58, 65.03, 312.17°)
OKLaboklab(36.1% 0.0808 -0.1377)
OKLCHoklch(36.1% 0.16 300.4)
XYZxyz(7.4808, 3.9733, 21.4876)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B82 #50821B
analogous
#1B1D82 #4D1B82 #801B82
triadic
#4D1B82 #824D1B #1B824D
tetradic
#4D1B82 #821B1D #50821B #1B8280
square
#4D1B82 #821B1D #50821B #1B8280
split-complementary
#4D1B82 #82801B #1D821B
monochromatic
#11061D #2F104F #4D1B82 #6B26B5 #8940D7

Accessibility & contrast

On white

11.70
#4D1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1B82
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B82#FFFFFF#000000##FFFFFF
##4D1B821.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#41364E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1b82;
/* rgb */ color: rgb(77, 27, 130);
/* oklch */ color: oklch(36.1% 0.160 300.4);
Tailwind
colors: {
  custom: {
    50: '#845da7',
    500: '#4d1b82',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b82;
$custom-light: #845da7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b82",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 269.126,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36102,
    "c": 0.15964,
    "h": 300.4
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#4D1B82
secondary
#7EB643
accent
#E93F96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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