#4D1578#4D1578

#4D1578 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.155 H 304.9°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#4D1578
RGBrgb(77, 21, 120)
HSLhsl(274, 70%, 28%)
HSVhsv(274, 83%, 47%)
CMYKcmyk(35.8%, 82.5%, 0%, 52.9%)
CIE-LABlab(21.84, 43.64, -44.70)
CIE-LCHlch(21.84, 62.47, 314.32°)
OKLaboklab(34.61% 0.0888 -0.1274)
OKLCHoklch(34.61% 0.155 304.9)
XYZxyz(6.7181, 3.4702, 18.0816)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1578 #407815
analogous
#1B1578 #4D1578 #781572
triadic
#4D1578 #784D15 #15784D
tetradic
#4D1578 #781B15 #407815 #157278
square
#4D1578 #781B15 #407815 #157278
split-complementary
#4D1578 #727815 #15781B
monochromatic
#11051A #2C0C44 #4D1578 #6E1EAC #8F2DDA

Accessibility & contrast

On white

12.40
#4D1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4D1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1578
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1578#FFFFFF#000000##FFFFFF
##4D15781.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#452F47
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1578;
/* rgb */ color: rgb(77, 21, 120);
/* oklch */ color: oklch(34.6% 0.155 304.9);
Tailwind
colors: {
  custom: {
    50: '#845aa0',
    500: '#4d1578',
    950: '#000000',
  },
}
SCSS
$custom: #4d1578;
$custom-light: #845aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1578",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 273.939,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34607,
    "c": 0.15529,
    "h": 304.9
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#4D1578
secondary
#6DAE3B
accent
#ED3B88
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4D1578

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

Preview Lab → · Contrast checker → · Palette generator →

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