#4D1479#4D1479

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

Color values

HEX#4D1479
RGBrgb(77, 20, 121)
HSLhsl(274, 72%, 28%)
HSVhsv(274, 83%, 47%)
CMYKcmyk(36.4%, 83.5%, 0%, 52.5%)
CIE-LABlab(21.79, 44.27, -45.40)
CIE-LCHlch(21.79, 63.41, 314.27°)
OKLaboklab(34.61% 0.0893 -0.1295)
OKLCHoklch(34.61% 0.157 304.6)
XYZxyz(6.7611, 3.4586, 18.3968)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1479 #407914
analogous
#1A1479 #4D1479 #791473
triadic
#4D1479 #794D14 #14794D
tetradic
#4D1479 #791A14 #407914 #147379
square
#4D1479 #791A14 #407914 #147379
split-complementary
#4D1479 #737914 #14791A
monochromatic
#11041A #2C0B44 #4D1479 #6E1DAE #8F2BDC

Accessibility & contrast

On white

12.41
#4D1479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1479
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1479#FFFFFF#000000##FFFFFF
##4D14791.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#442F47
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1479;
/* rgb */ color: rgb(77, 20, 121);
/* oklch */ color: oklch(34.6% 0.157 304.6);
Tailwind
colors: {
  custom: {
    50: '#845aa1',
    500: '#4d1479',
    950: '#000000',
  },
}
SCSS
$custom: #4d1479;
$custom-light: #845aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1479",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 273.861,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34605,
    "c": 0.15729,
    "h": 304.6
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#4D1479
secondary
#6DAF3A
accent
#EE3988
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1479

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

Preview Lab → · Contrast checker → · Palette generator →

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