#4A1578#4A1578

#4A1578 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.155 H 303.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#4A1578
RGBrgb(74, 21, 120)
HSLhsl(272, 70%, 28%)
HSVhsv(272, 83%, 47%)
CMYKcmyk(38.3%, 82.5%, 0%, 52.9%)
CIE-LABlab(21.39, 43.12, -45.45)
CIE-LCHlch(21.39, 62.65, 313.50°)
OKLaboklab(34.2% 0.0842 -0.1297)
OKLCHoklch(34.2% 0.155 303)
XYZxyz(6.4816, 3.3482, 18.0705)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1578 #437815
analogous
#181578 #4A1578 #781575
triadic
#4A1578 #784A15 #15784A
tetradic
#4A1578 #781815 #437815 #157578
square
#4A1578 #781815 #437815 #157578
split-complementary
#4A1578 #757815 #157818
monochromatic
#10051A #2A0C44 #4A1578 #6A1EAC #8A2DDA

Accessibility & contrast

On white

12.58
#4A1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1578
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1578#FFFFFF#000000##FFFFFF
##4A15781.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#403047
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1578;
/* rgb */ color: rgb(74, 21, 120);
/* oklch */ color: oklch(34.2% 0.155 303.0);
Tailwind
colors: {
  custom: {
    50: '#825aa0',
    500: '#4a1578',
    950: '#000000',
  },
}
SCSS
$custom: #4a1578;
$custom-light: #825aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1578",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 272.121,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34199,
    "c": 0.15462,
    "h": 303
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#4A1578
secondary
#70AE3B
accent
#ED3B8E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4A1578

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

Preview Lab → · Contrast checker → · Palette generator →

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