#4D1C72#4D1C72

#4D1C72 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.141 H 306.3°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#4D1C72
RGBrgb(77, 28, 114)
HSLhsl(274, 61%, 28%)
HSVhsv(274, 75%, 45%)
CMYKcmyk(32.5%, 75.4%, 0%, 55.3%)
CIE-LABlab(22.38, 39.15, -39.96)
CIE-LCHlch(22.38, 55.94, 314.42°)
OKLaboklab(34.84% 0.0835 -0.1135)
OKLCHoklch(34.84% 0.141 306.3)
XYZxyz(6.5124, 3.6233, 16.2726)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C72 #41721C
analogous
#221C72 #4D1C72 #721C6C
triadic
#4D1C72 #724D1C #1C724D
tetradic
#4D1C72 #72221C #41721C #1C6C72
square
#4D1C72 #72221C #41721C #1C6C72
split-complementary
#4D1C72 #6C721C #1C7222
monochromatic
#110619 #2C1041 #4D1C72 #6E28A3 #8F3ACF

Accessibility & contrast

On white

12.18
#4D1C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4D1C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C72
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C72#FFFFFF#000000##FFFFFF
##4D1C721.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#473045
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1c72;
/* rgb */ color: rgb(77, 28, 114);
/* oklch */ color: oklch(34.8% 0.141 306.3);
Tailwind
colors: {
  custom: {
    50: '#835d9b',
    500: '#4d1c72',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c72;
$custom-light: #835d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c72",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 274.186,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34835,
    "c": 0.1409,
    "h": 306.3
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#4D1C72
secondary
#6EA643
accent
#E44489
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1C72

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

Preview Lab → · Contrast checker → · Palette generator →

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