#4D1878#4D1878

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

Color values

HEX#4D1878
RGBrgb(77, 24, 120)
HSLhsl(273, 67%, 28%)
HSVhsv(273, 80%, 47%)
CMYKcmyk(35.8%, 80%, 0%, 52.9%)
CIE-LABlab(22.26, 42.43, -44.01)
CIE-LCHlch(22.26, 61.13, 313.95°)
OKLaboklab(34.9% 0.0862 -0.1254)
OKLCHoklch(34.9% 0.152 304.5)
XYZxyz(6.7766, 3.5871, 18.1010)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1878 #437818
analogous
#1D1878 #4D1878 #781873
triadic
#4D1878 #784D18 #18784D
tetradic
#4D1878 #781D18 #437818 #187378
square
#4D1878 #781D18 #437818 #187378
split-complementary
#4D1878 #737818 #18781D
monochromatic
#10051A #2C0E45 #4D1878 #6E22AB #8E34D6

Accessibility & contrast

On white

12.23
#4D1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1878
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1878#FFFFFF#000000##FFFFFF
##4D18781.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#453147
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1878;
/* rgb */ color: rgb(77, 24, 120);
/* oklch */ color: oklch(34.9% 0.152 304.5);
Tailwind
colors: {
  custom: {
    50: '#845ba0',
    500: '#4d1878',
    950: '#000000',
  },
}
SCSS
$custom: #4d1878;
$custom-light: #845ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1878",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 273.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34901,
    "c": 0.15215,
    "h": 304.5
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#4D1878
secondary
#70AD3F
accent
#EA3E8B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4D1878

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

Preview Lab → · Contrast checker → · Palette generator →

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