#4D1381#4D1381

#4D1381 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.166 H 301.7°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4D1381
RGBrgb(77, 19, 129)
HSLhsl(272, 74%, 29%)
HSVhsv(272, 85%, 51%)
CMYKcmyk(40.3%, 85.3%, 0%, 49.4%)
CIE-LABlab(22.40, 46.57, -49.49)
CIE-LCHlch(22.40, 67.96, 313.25°)
OKLaboklab(35.25% 0.0875 -0.1414)
OKLCHoklch(35.25% 0.166 301.7)
XYZxyz(7.2549, 3.6285, 21.0828)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1381 #478113
analogous
#161381 #4D1381 #81137E
triadic
#4D1381 #814D13 #13814D
tetradic
#4D1381 #811613 #478113 #137E81
square
#4D1381 #811613 #478113 #137E81
split-complementary
#4D1381 #7E8113 #138116
monochromatic
#10041B #2D0B4C #4D1381 #6D1BB6 #8C2EE0

Accessibility & contrast

On white

12.17
#4D1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4D1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1381
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1381#FFFFFF#000000##FFFFFF
##4D13811.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#41334C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1381;
/* rgb */ color: rgb(77, 19, 129);
/* oklch */ color: oklch(35.3% 0.166 301.7);
Tailwind
colors: {
  custom: {
    50: '#855aa7',
    500: '#4d1381',
    950: '#000000',
  },
}
SCSS
$custom: #4d1381;
$custom-light: #855aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1381",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 271.636,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35253,
    "c": 0.16633,
    "h": 301.7
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#4D1381
secondary
#74B63A
accent
#F1378F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1381

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

Preview Lab → · Contrast checker → · Palette generator →

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