#4D1B71#4D1B71

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

Color values

HEX#4D1B71
RGBrgb(77, 27, 113)
HSLhsl(275, 61%, 27%)
HSVhsv(275, 76%, 44%)
CMYKcmyk(31.9%, 76.1%, 0%, 55.7%)
CIE-LABlab(22.14, 39.37, -39.71)
CIE-LCHlch(22.14, 55.92, 314.75°)
OKLaboklab(34.64% 0.0848 -0.1128)
OKLCHoklch(34.64% 0.141 306.9)
XYZxyz(6.4325, 3.5540, 15.9667)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B71 #3F711B
analogous
#221B71 #4D1B71 #711B6A
triadic
#4D1B71 #714D1B #1B714D
tetradic
#4D1B71 #71221B #3F711B #1B6A71
square
#4D1B71 #71221B #3F711B #1B6A71
split-complementary
#4D1B71 #6A711B #1B7122
monochromatic
#110619 #2B0F40 #4D1B71 #6F27A2 #9037CF

Accessibility & contrast

On white

12.27
#4D1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4D1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B71
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B71#FFFFFF#000000##FFFFFF
##4D1B711.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.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: #4d1b71;
/* rgb */ color: rgb(77, 27, 113);
/* oklch */ color: oklch(34.6% 0.141 306.9);
Tailwind
colors: {
  custom: {
    50: '#835d9a',
    500: '#4d1b71',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b71;
$custom-light: #835d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b71",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 274.884,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34635,
    "c": 0.14107,
    "h": 306.9
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#4D1B71
secondary
#6CA642
accent
#E54387
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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