#4D1D71#4D1D71

#4D1D71 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.139 H 306.6°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#4D1D71
RGBrgb(77, 29, 113)
HSLhsl(274, 59%, 28%)
HSVhsv(274, 74%, 44%)
CMYKcmyk(31.9%, 74.3%, 0%, 55.7%)
CIE-LABlab(22.47, 38.42, -39.17)
CIE-LCHlch(22.47, 54.86, 314.45°)
OKLaboklab(34.87% 0.0826 -0.1112)
OKLCHoklch(34.87% 0.139 306.6)
XYZxyz(6.4799, 3.6488, 15.9825)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D71 #41711D
analogous
#231D71 #4D1D71 #711D6B
triadic
#4D1D71 #714D1D #1D714D
tetradic
#4D1D71 #71231D #41711D #1D6B71
square
#4D1D71 #71231D #41711D #1D6B71
split-complementary
#4D1D71 #6B711D #1D7123
monochromatic
#110618 #2C1140 #4D1D71 #6E29A2 #8F3CCD

Accessibility & contrast

On white

12.14
#4D1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4D1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D71
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D71#FFFFFF#000000##FFFFFF
##4D1D711.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#01366F
Tritanopia (blue-blind)
#473045
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1d71;
/* rgb */ color: rgb(77, 29, 113);
/* oklch */ color: oklch(34.9% 0.139 306.6);
Tailwind
colors: {
  custom: {
    50: '#835e9a',
    500: '#4d1d71',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d71;
$custom-light: #835e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d71",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 274.286,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34873,
    "c": 0.1385,
    "h": 306.6
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#4D1D71
secondary
#6EA544
accent
#E24589
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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