#4A1579#4A1579

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

Color values

HEX#4A1579
RGBrgb(74, 21, 121)
HSLhsl(272, 70%, 28%)
HSVhsv(272, 83%, 47%)
CMYKcmyk(38.8%, 82.6%, 0%, 52.5%)
CIE-LABlab(21.48, 43.37, -45.94)
CIE-LCHlch(21.48, 63.18, 313.35°)
OKLaboklab(34.29% 0.0839 -0.1311)
OKLCHoklch(34.29% 0.156 302.6)
XYZxyz(6.5426, 3.3726, 18.3918)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1579 #447915
analogous
#181579 #4A1579 #791576
triadic
#4A1579 #794A15 #15794A
tetradic
#4A1579 #791815 #447915 #157679
square
#4A1579 #791815 #447915 #157679
split-complementary
#4A1579 #767915 #157918
monochromatic
#10051A #2A0C45 #4A1579 #6A1EAD #892EDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A1579#FFFFFF#000000##FFFFFF
##4A15791.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#403047
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1579;
/* rgb */ color: rgb(74, 21, 121);
/* oklch */ color: oklch(34.3% 0.156 302.6);
Tailwind
colors: {
  custom: {
    50: '#825aa1',
    500: '#4a1579',
    950: '#000000',
  },
}
SCSS
$custom: #4a1579;
$custom-light: #825aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1579",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 271.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3429,
    "c": 0.15567,
    "h": 302.6
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#4A1579
secondary
#71AF3B
accent
#ED3B8F
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1579

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

Preview Lab → · Contrast checker → · Palette generator →

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