#4B1878#4B1878

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

Color values

HEX#4B1878
RGBrgb(75, 24, 120)
HSLhsl(272, 67%, 28%)
HSVhsv(272, 80%, 47%)
CMYKcmyk(37.5%, 80%, 0%, 52.9%)
CIE-LABlab(21.96, 42.06, -44.50)
CIE-LCHlch(21.96, 61.23, 313.39°)
OKLaboklab(34.63% 0.0831 -0.1269)
OKLCHoklch(34.63% 0.152 303.2)
XYZxyz(6.6177, 3.5052, 18.0936)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1878 #457818
analogous
#1B1878 #4B1878 #781875
triadic
#4B1878 #784B18 #18784B
tetradic
#4B1878 #781B18 #457818 #187578
square
#4B1878 #781B18 #457818 #187578
split-complementary
#4B1878 #757818 #18781B
monochromatic
#10051A #2B0E45 #4B1878 #6B22AB #8A34D6

Accessibility & contrast

On white

12.35
#4B1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1878
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1878#FFFFFF#000000##FFFFFF
##4B18781.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#423147
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1878;
/* rgb */ color: rgb(75, 24, 120);
/* oklch */ color: oklch(34.6% 0.152 303.2);
Tailwind
colors: {
  custom: {
    50: '#825ba0',
    500: '#4b1878',
    950: '#000000',
  },
}
SCSS
$custom: #4b1878;
$custom-light: #825ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1878",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 271.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34632,
    "c": 0.15169,
    "h": 303.2
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#4B1878
secondary
#72AD3F
accent
#EA3E8F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4B1878

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

Preview Lab → · Contrast checker → · Palette generator →

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