#4B1A78#4B1A78

#4B1A78 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.149 H 302.9°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4B1A78
RGBrgb(75, 26, 120)
HSLhsl(271, 64%, 29%)
HSVhsv(271, 78%, 47%)
CMYKcmyk(37.5%, 78.3%, 0%, 52.9%)
CIE-LABlab(22.27, 41.18, -44.00)
CIE-LCHlch(22.27, 60.27, 313.10°)
OKLaboklab(34.85% 0.0812 -0.1255)
OKLCHoklch(34.85% 0.149 302.9)
XYZxyz(6.6604, 3.5907, 18.1078)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A78 #47781A
analogous
#1C1A78 #4B1A78 #781A76
triadic
#4B1A78 #784B1A #1A784B
tetradic
#4B1A78 #781C1A #47781A #1A7678
square
#4B1A78 #781C1A #47781A #1A7678
split-complementary
#4B1A78 #76781A #1A781C
monochromatic
#100519 #2C0F46 #4B1A78 #6A25AA #8A38D4

Accessibility & contrast

On white

12.22
#4B1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4B1A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1A78
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A78#FFFFFF#000000##FFFFFF
##4B1A781.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1a78;
/* rgb */ color: rgb(75, 26, 120);
/* oklch */ color: oklch(34.8% 0.149 302.9);
Tailwind
colors: {
  custom: {
    50: '#825ca0',
    500: '#4b1a78',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a78;
$custom-light: #825ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a78",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 271.277,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34847,
    "c": 0.14945,
    "h": 302.9
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#4B1A78
secondary
#75AC41
accent
#E74090
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4B1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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