#4C1574#4C1574

#4C1574 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.151 H 305.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#4C1574
RGBrgb(76, 21, 116)
HSLhsl(275, 69%, 27%)
HSVhsv(275, 82%, 45%)
CMYKcmyk(34.5%, 81.9%, 0%, 54.5%)
CIE-LABlab(21.33, 42.50, -42.96)
CIE-LCHlch(21.33, 60.43, 314.69°)
OKLaboklab(34.12% 0.0884 -0.1223)
OKLCHoklch(34.12% 0.151 305.9)
XYZxyz(6.4003, 3.3338, 16.8259)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1574 #3D7415
analogous
#1D1574 #4C1574 #74156D
triadic
#4C1574 #744C15 #15744C
tetradic
#4C1574 #741D15 #3D7415 #156D74
square
#4C1574 #741D15 #3D7415 #156D74
split-complementary
#4C1574 #6D7415 #15741D
monochromatic
#11051A #2A0C40 #4C1574 #6E1EA8 #8F2BD9

Accessibility & contrast

On white

12.60
#4C1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4C1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1574
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1574#FFFFFF#000000##FFFFFF
##4C15741.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#452E44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c1574;
/* rgb */ color: rgb(76, 21, 116);
/* oklch */ color: oklch(34.1% 0.151 305.9);
Tailwind
colors: {
  custom: {
    50: '#835a9d',
    500: '#4c1574',
    950: '#000000',
  },
}
SCSS
$custom: #4c1574;
$custom-light: #835a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1574",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 274.737,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34115,
    "c": 0.15091,
    "h": 305.9
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#4C1574
secondary
#6AAA3B
accent
#EC3C86
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1574

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

Preview Lab → · Contrast checker → · Palette generator →

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