#4A1879#4A1879

#4A1879 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.153 H 302.2°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4A1879
RGBrgb(74, 24, 121)
HSLhsl(271, 67%, 28%)
HSVhsv(271, 80%, 47%)
CMYKcmyk(38.8%, 80.2%, 0%, 52.5%)
CIE-LABlab(21.91, 42.13, -45.24)
CIE-LCHlch(21.91, 61.82, 312.96°)
OKLaboklab(34.59% 0.0813 -0.1291)
OKLCHoklch(34.59% 0.153 302.2)
XYZxyz(6.6010, 3.4896, 18.4112)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1879 #477918
analogous
#191879 #4A1879 #791877
triadic
#4A1879 #794A18 #18794A
tetradic
#4A1879 #791918 #477918 #187779
square
#4A1879 #791918 #477918 #187779
split-complementary
#4A1879 #777918 #187919
monochromatic
#10051A #2B0E46 #4A1879 #6922AC #8835D7

Accessibility & contrast

On white

12.37
#4A1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1879
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1879#FFFFFF#000000##FFFFFF
##4A18791.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#403248
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1879;
/* rgb */ color: rgb(74, 24, 121);
/* oklch */ color: oklch(34.6% 0.153 302.2);
Tailwind
colors: {
  custom: {
    50: '#825ba1',
    500: '#4a1879',
    950: '#000000',
  },
}
SCSS
$custom: #4a1879;
$custom-light: #825ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1879",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 270.928,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34589,
    "c": 0.15257,
    "h": 302.2
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#4A1879
secondary
#75AE3F
accent
#EA3E91
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1879

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

Preview Lab → · Contrast checker → · Palette generator →

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