#4D1879#4D1879

#4D1879 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.153 H 304.1°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4D1879
RGBrgb(77, 24, 121)
HSLhsl(273, 67%, 28%)
HSVhsv(273, 80%, 47%)
CMYKcmyk(36.4%, 80.2%, 0%, 52.5%)
CIE-LABlab(22.34, 42.68, -44.51)
CIE-LCHlch(22.34, 61.66, 313.80°)
OKLaboklab(34.99% 0.0859 -0.1269)
OKLCHoklch(34.99% 0.153 304.1)
XYZxyz(6.8376, 3.6115, 18.4223)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1879 #447918
analogous
#1D1879 #4D1879 #791874
triadic
#4D1879 #794D18 #18794D
tetradic
#4D1879 #791D18 #447918 #187479
square
#4D1879 #791D18 #447918 #187479
split-complementary
#4D1879 #747918 #18791D
monochromatic
#10051A #2D0E46 #4D1879 #6D22AC #8D35D7

Accessibility & contrast

On white

12.19
#4D1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4D1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1879
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1879#FFFFFF#000000##FFFFFF
##4D18791.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#443148
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1879;
/* rgb */ color: rgb(77, 24, 121);
/* oklch */ color: oklch(35.0% 0.153 304.1);
Tailwind
colors: {
  custom: {
    50: '#845ca0',
    500: '#4d1879',
    950: '#000000',
  },
}
SCSS
$custom: #4d1879;
$custom-light: #845ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1879",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 272.784,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34988,
    "c": 0.15321,
    "h": 304.1
  },
  "luminance": 0.03612
}

Semantic roles & 50–950 ramp

primary
#4D1879
secondary
#71AE3F
accent
#EA3E8C
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1879

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

Preview Lab → · Contrast checker → · Palette generator →

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