#4D1D74#4D1D74

#4D1D74 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.142 H 305.3°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#4D1D74
RGBrgb(77, 29, 116)
HSLhsl(273, 60%, 28%)
HSVhsv(273, 75%, 45%)
CMYKcmyk(33.6%, 75%, 0%, 54.5%)
CIE-LABlab(22.71, 39.17, -40.71)
CIE-LCHlch(22.71, 56.49, 313.90°)
OKLaboklab(35.12% 0.082 -0.1157)
OKLCHoklch(35.12% 0.142 305.3)
XYZxyz(6.6516, 3.7175, 16.8867)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D74 #44741D
analogous
#211D74 #4D1D74 #741D6F
triadic
#4D1D74 #744D1D #1D744D
tetradic
#4D1D74 #74211D #44741D #1D6F74
square
#4D1D74 #74211D #44741D #1D6F74
split-complementary
#4D1D74 #6F741D #1D7421
monochromatic
#100618 #2C1143 #4D1D74 #6D29A5 #8D3DCE

Accessibility & contrast

On white

12.05
#4D1D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D1D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D74
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D74#FFFFFF#000000##FFFFFF
##4D1D741.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#463246
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1d74;
/* rgb */ color: rgb(77, 29, 116);
/* oklch */ color: oklch(35.1% 0.142 305.3);
Tailwind
colors: {
  custom: {
    50: '#835e9d',
    500: '#4d1d74',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d74;
$custom-light: #835e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d74",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 273.103,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35119,
    "c": 0.14184,
    "h": 305.3
  },
  "luminance": 0.03717
}

Semantic roles & 50–950 ramp

primary
#4D1D74
secondary
#71A845
accent
#E3458C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1D74

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

Preview Lab → · Contrast checker → · Palette generator →

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