#4D1A71#4D1A71

#4D1A71 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.142 H 307.1°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4D1A71
RGBrgb(77, 26, 113)
HSLhsl(275, 63%, 27%)
HSVhsv(275, 77%, 44%)
CMYKcmyk(31.9%, 77%, 0%, 55.7%)
CIE-LABlab(21.98, 39.83, -39.97)
CIE-LCHlch(21.98, 56.43, 314.90°)
OKLaboklab(34.52% 0.0858 -0.1135)
OKLCHoklch(34.52% 0.142 307.1)
XYZxyz(6.4100, 3.5089, 15.9592)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A71 #3E711A
analogous
#211A71 #4D1A71 #711A6A
triadic
#4D1A71 #714D1A #1A714D
tetradic
#4D1A71 #71211A #3E711A #1A6A71
square
#4D1A71 #71211A #3E711A #1A6A71
split-complementary
#4D1A71 #6A711A #1A7121
monochromatic
#110619 #2B0F3F #4D1A71 #6F25A3 #9035D0

Accessibility & contrast

On white

12.34
#4D1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4D1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A71
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A71#FFFFFF#000000##FFFFFF
##4D1A711.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#472F44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1a71;
/* rgb */ color: rgb(77, 26, 113);
/* oklch */ color: oklch(34.5% 0.142 307.1);
Tailwind
colors: {
  custom: {
    50: '#835c9a',
    500: '#4d1a71',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a71;
$custom-light: #835c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a71",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 275.172,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3452,
    "c": 0.14232,
    "h": 307.1
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#4D1A71
secondary
#6BA641
accent
#E64286
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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