#4D1C81#4D1C81

#4D1C81 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.157 H 300.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#4D1C81
RGBrgb(77, 28, 129)
HSLhsl(269, 64%, 31%)
HSVhsv(269, 78%, 51%)
CMYKcmyk(40.3%, 78.3%, 0%, 49.4%)
CIE-LABlab(23.65, 42.96, -47.46)
CIE-LCHlch(23.65, 64.01, 312.15°)
OKLaboklab(36.12% 0.0801 -0.1355)
OKLCHoklch(36.12% 0.157 300.6)
XYZxyz(7.4373, 3.9932, 21.1436)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C81 #50811C
analogous
#1C1D81 #4D1C81 #7F1C81
triadic
#4D1C81 #814D1C #1C814D
tetradic
#4D1C81 #811C1D #50811C #1C817F
square
#4D1C81 #811C1D #50811C #1C817F
split-complementary
#4D1C81 #817F1C #1D811C
monochromatic
#11061C #2F114F #4D1C81 #6B27B3 #8942D6

Accessibility & contrast

On white

11.68
#4D1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C81
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C81#FFFFFF#000000##FFFFFF
##4D1C811.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#41364D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1c81;
/* rgb */ color: rgb(77, 28, 129);
/* oklch */ color: oklch(36.1% 0.157 300.6);
Tailwind
colors: {
  custom: {
    50: '#845ea6',
    500: '#4d1c81',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c81;
$custom-light: #845ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c81",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 269.109,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36121,
    "c": 0.15745,
    "h": 300.6
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#4D1C81
secondary
#7EB444
accent
#E74096
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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