#4D1A76#4D1A76

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

Color values

HEX#4D1A76
RGBrgb(77, 26, 118)
HSLhsl(273, 64%, 28%)
HSVhsv(273, 78%, 46%)
CMYKcmyk(34.7%, 78%, 0%, 53.7%)
CIE-LABlab(22.39, 41.07, -42.52)
CIE-LCHlch(22.39, 59.11, 314.01°)
OKLaboklab(34.94% 0.0847 -0.121)
OKLCHoklch(34.94% 0.148 305)
XYZxyz(6.6992, 3.6246, 17.4827)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A76 #43761A
analogous
#1F1A76 #4D1A76 #761A71
triadic
#4D1A76 #764D1A #1A764D
tetradic
#4D1A76 #761F1A #43761A #1A7176
square
#4D1A76 #761F1A #43761A #1A7176
split-complementary
#4D1A76 #71761A #1A761F
monochromatic
#100619 #2C0F44 #4D1A76 #6E25A8 #8E37D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D1A76#FFFFFF#000000##FFFFFF
##4D1A761.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)
#003479
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#453147
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1a76;
/* rgb */ color: rgb(77, 26, 118);
/* oklch */ color: oklch(34.9% 0.148 305.0);
Tailwind
colors: {
  custom: {
    50: '#835c9e',
    500: '#4d1a76',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a76;
$custom-light: #835c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a76",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 273.261,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34941,
    "c": 0.14774,
    "h": 305
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#4D1A76
secondary
#70AB41
accent
#E7418B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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