#4D1D84#4D1D84

#4D1D84 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.160 H 299.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4D1D84
RGBrgb(77, 29, 132)
HSLhsl(268, 64%, 32%)
HSVhsv(268, 78%, 52%)
CMYKcmyk(41.7%, 78%, 0%, 48.2%)
CIE-LABlab(24.07, 43.28, -48.65)
CIE-LCHlch(24.07, 65.12, 311.66°)
OKLaboklab(36.5% 0.0784 -0.1391)
OKLCHoklch(36.5% 0.16 299.4)
XYZxyz(7.6637, 4.1224, 22.2173)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D84 #54841D
analogous
#1D2184 #4D1D84 #811D84
triadic
#4D1D84 #844D1D #1D844D
tetradic
#4D1D84 #841D21 #54841D #1D8481
square
#4D1D84 #841D21 #54841D #1D8481
split-complementary
#4D1D84 #84811D #21841D
monochromatic
#120720 #301252 #4D1D84 #6A28B6 #8945D6

Accessibility & contrast

On white

11.51
#4D1D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D1D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D84
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D84#FFFFFF#000000##FFFFFF
##4D1D841.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#40384F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1d84;
/* rgb */ color: rgb(77, 29, 132);
/* oklch */ color: oklch(36.5% 0.160 299.4);
Tailwind
colors: {
  custom: {
    50: '#855fa9',
    500: '#4d1d84',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d84;
$custom-light: #855fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d84",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 267.961,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.365,
    "c": 0.15966,
    "h": 299.4
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#4D1D84
secondary
#82B746
accent
#E7419A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1D84

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

Preview Lab → · Contrast checker → · Palette generator →

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