#4A1878#4A1878

#4A1878 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.151 H 302.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#4A1878
RGBrgb(74, 24, 120)
HSLhsl(271, 67%, 28%)
HSVhsv(271, 80%, 47%)
CMYKcmyk(38.3%, 80%, 0%, 52.9%)
CIE-LABlab(21.82, 41.88, -44.74)
CIE-LCHlch(21.82, 61.29, 313.10°)
OKLaboklab(34.5% 0.0816 -0.1277)
OKLCHoklch(34.5% 0.151 302.6)
XYZxyz(6.5400, 3.4652, 18.0900)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1878 #467818
analogous
#1A1878 #4A1878 #781876
triadic
#4A1878 #784A18 #18784A
tetradic
#4A1878 #781A18 #467818 #187678
square
#4A1878 #781A18 #467818 #187678
split-complementary
#4A1878 #767818 #18781A
monochromatic
#10051A #2B0E45 #4A1878 #6922AB #8934D6

Accessibility & contrast

On white

12.40
#4A1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1878
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1878#FFFFFF#000000##FFFFFF
##4A18781.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1878;
/* rgb */ color: rgb(74, 24, 120);
/* oklch */ color: oklch(34.5% 0.151 302.6);
Tailwind
colors: {
  custom: {
    50: '#825ba0',
    500: '#4a1878',
    950: '#000000',
  },
}
SCSS
$custom: #4a1878;
$custom-light: #825ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1878",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 271.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.345,
    "c": 0.15149,
    "h": 302.6
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#4A1878
secondary
#74AD3F
accent
#EA3E90
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4A1878

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

Preview Lab → · Contrast checker → · Palette generator →

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