#4D1778#4D1778

#4D1778 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.153 H 304.6°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#4D1778
RGBrgb(77, 23, 120)
HSLhsl(273, 68%, 28%)
HSVhsv(273, 81%, 47%)
CMYKcmyk(35.8%, 80.8%, 0%, 52.9%)
CIE-LABlab(22.11, 42.85, -44.25)
CIE-LCHlch(22.11, 61.59, 314.08°)
OKLaboklab(34.8% 0.0871 -0.1261)
OKLCHoklch(34.8% 0.153 304.6)
XYZxyz(6.7564, 3.5467, 18.0943)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1778 #427817
analogous
#1C1778 #4D1778 #781772
triadic
#4D1778 #784D17 #17784D
tetradic
#4D1778 #781C17 #427817 #177278
square
#4D1778 #781C17 #427817 #177278
split-complementary
#4D1778 #727817 #17781C
monochromatic
#10051A #2C0D45 #4D1778 #6E21AB #8E32D8

Accessibility & contrast

On white

12.29
#4D1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4D1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1778
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1778#FFFFFF#000000##FFFFFF
##4D17781.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1778;
/* rgb */ color: rgb(77, 23, 120);
/* oklch */ color: oklch(34.8% 0.153 304.6);
Tailwind
colors: {
  custom: {
    50: '#845ba0',
    500: '#4d1778',
    950: '#000000',
  },
}
SCSS
$custom: #4d1778;
$custom-light: #845ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1778",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 273.402,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.348,
    "c": 0.15322,
    "h": 304.6
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#4D1778
secondary
#6FAD3E
accent
#EB3D8A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4D1778

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

Preview Lab → · Contrast checker → · Palette generator →

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