#4D1C7A#4D1C7A

#4D1C7A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.150 H 303.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4D1C7A
RGBrgb(77, 28, 122)
HSLhsl(271, 63%, 29%)
HSVhsv(271, 77%, 48%)
CMYKcmyk(36.9%, 77%, 0%, 52.2%)
CIE-LABlab(23.04, 41.17, -44.00)
CIE-LCHlch(23.04, 60.26, 313.09°)
OKLaboklab(35.51% 0.0818 -0.1254)
OKLCHoklch(35.51% 0.15 303.1)
XYZxyz(6.9878, 3.8134, 18.7765)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C7A #497A1C
analogous
#1E1C7A #4D1C7A #7A1C78
triadic
#4D1C7A #7A4D1C #1C7A4D
tetradic
#4D1C7A #7A1E1C #497A1C #1C787A
square
#4D1C7A #7A1E1C #497A1C #1C787A
split-complementary
#4D1C7A #787A1C #1C7A1E
monochromatic
#100619 #2E1148 #4D1C7A #6C27AC #8B3ED3

Accessibility & contrast

On white

11.91
#4D1C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4D1C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C7A
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C7A#FFFFFF#000000##FFFFFF
##4D1C7A1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#443349
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1c7a;
/* rgb */ color: rgb(77, 28, 122);
/* oklch */ color: oklch(35.5% 0.150 303.1);
Tailwind
colors: {
  custom: {
    50: '#835ea1',
    500: '#4d1c7a',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c7a;
$custom-light: #835ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c7a",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 271.277,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35508,
    "c": 0.14974,
    "h": 303.1
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#4D1C7A
secondary
#77AE44
accent
#E64290
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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