#4C1578#4C1578

#4C1578 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.155 H 304.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#4C1578
RGBrgb(76, 21, 120)
HSLhsl(273, 70%, 28%)
HSVhsv(273, 83%, 47%)
CMYKcmyk(36.7%, 82.5%, 0%, 52.9%)
CIE-LABlab(21.69, 43.47, -44.95)
CIE-LCHlch(21.69, 62.53, 314.04°)
OKLaboklab(34.47% 0.0873 -0.1282)
OKLCHoklch(34.47% 0.155 304.3)
XYZxyz(6.6380, 3.4289, 18.0778)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1578 #417815
analogous
#1A1578 #4C1578 #781573
triadic
#4C1578 #784C15 #15784C
tetradic
#4C1578 #781A15 #417815 #157378
square
#4C1578 #781A15 #417815 #157378
split-complementary
#4C1578 #737815 #15781A
monochromatic
#10051A #2B0C44 #4C1578 #6D1EAC #8D2DDA

Accessibility & contrast

On white

12.46
#4C1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1578
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1578#FFFFFF#000000##FFFFFF
##4C15781.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1578;
/* rgb */ color: rgb(76, 21, 120);
/* oklch */ color: oklch(34.5% 0.155 304.3);
Tailwind
colors: {
  custom: {
    50: '#835aa0',
    500: '#4c1578',
    950: '#000000',
  },
}
SCSS
$custom: #4c1578;
$custom-light: #835aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1578",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 273.333,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3447,
    "c": 0.15505,
    "h": 304.3
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#4C1578
secondary
#6EAE3B
accent
#ED3B8A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4C1578

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

Preview Lab → · Contrast checker → · Palette generator →

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