#4D1574#4D1574

#4D1574 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.151 H 306.5°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#4D1574
RGBrgb(77, 21, 116)
HSLhsl(275, 69%, 27%)
HSVhsv(275, 82%, 45%)
CMYKcmyk(33.6%, 81.9%, 0%, 54.5%)
CIE-LABlab(21.49, 42.68, -42.70)
CIE-LCHlch(21.49, 60.37, 314.99°)
OKLaboklab(34.26% 0.0899 -0.1215)
OKLCHoklch(34.26% 0.151 306.5)
XYZxyz(6.4804, 3.3751, 16.8297)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1574 #3C7415
analogous
#1D1574 #4D1574 #74156C
triadic
#4D1574 #744D15 #15744D
tetradic
#4D1574 #741D15 #3C7415 #156C74
square
#4D1574 #741D15 #3C7415 #156C74
split-complementary
#4D1574 #6C7415 #15741D
monochromatic
#11051A #2B0C40 #4D1574 #6F1EA8 #912BD9

Accessibility & contrast

On white

12.54
#4D1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1574
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1574#FFFFFF#000000##FFFFFF
##4D15741.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#462E44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1574;
/* rgb */ color: rgb(77, 21, 116);
/* oklch */ color: oklch(34.3% 0.151 306.5);
Tailwind
colors: {
  custom: {
    50: '#835a9d',
    500: '#4d1574',
    950: '#000000',
  },
}
SCSS
$custom: #4d1574;
$custom-light: #835a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1574",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 275.368,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34255,
    "c": 0.15117,
    "h": 306.5
  },
  "luminance": 0.03375
}

Semantic roles & 50–950 ramp

primary
#4D1574
secondary
#68AA3B
accent
#EC3C84
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1574

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

Preview Lab → · Contrast checker → · Palette generator →

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