#4D1771#4D1771

#4D1771 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.146 H 307.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4D1771
RGBrgb(77, 23, 113)
HSLhsl(276, 66%, 27%)
HSVhsv(276, 80%, 44%)
CMYKcmyk(31.9%, 79.6%, 0%, 55.7%)
CIE-LABlab(21.52, 41.14, -40.72)
CIE-LCHlch(21.52, 57.89, 315.30°)
OKLaboklab(34.2% 0.0888 -0.1157)
OKLCHoklch(34.2% 0.146 307.5)
XYZxyz(6.3470, 3.3829, 15.9382)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1771 #3B7117
analogous
#201771 #4D1771 #711768
triadic
#4D1771 #714D17 #17714D
tetradic
#4D1771 #712017 #3B7117 #176871
square
#4D1771 #712017 #3B7117 #176871
split-complementary
#4D1771 #687117 #177120
monochromatic
#110519 #2A0D3E #4D1771 #7021A4 #922ED4

Accessibility & contrast

On white

12.53
#4D1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1771
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1771#FFFFFF#000000##FFFFFF
##4D17711.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#472D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1771;
/* rgb */ color: rgb(77, 23, 113);
/* oklch */ color: oklch(34.2% 0.146 307.5);
Tailwind
colors: {
  custom: {
    50: '#835b9a',
    500: '#4d1771',
    950: '#000000',
  },
}
SCSS
$custom: #4d1771;
$custom-light: #835b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1771",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 276,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34196,
    "c": 0.14588,
    "h": 307.5
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#4D1771
secondary
#67A73D
accent
#E93F83
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1771

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

Preview Lab → · Contrast checker → · Palette generator →

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