#4B1A76#4B1A76

#4B1A76 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.147 H 303.7°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#4B1A76
RGBrgb(75, 26, 118)
HSLhsl(272, 64%, 28%)
HSVhsv(272, 78%, 46%)
CMYKcmyk(36.4%, 78%, 0%, 53.7%)
CIE-LABlab(22.10, 40.68, -43.00)
CIE-LCHlch(22.10, 59.19, 313.41°)
OKLaboklab(34.67% 0.0817 -0.1225)
OKLCHoklch(34.67% 0.147 303.7)
XYZxyz(6.5403, 3.5427, 17.4753)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A76 #45761A
analogous
#1D1A76 #4B1A76 #761A73
triadic
#4B1A76 #764B1A #1A764B
tetradic
#4B1A76 #761D1A #45761A #1A7376
square
#4B1A76 #761D1A #45761A #1A7376
split-complementary
#4B1A76 #73761A #1A761D
monochromatic
#100619 #2B0F44 #4B1A76 #6B25A8 #8A37D3

Accessibility & contrast

On white

12.29
#4B1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4B1A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1A76
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A76#FFFFFF#000000##FFFFFF
##4B1A761.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#423147
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1a76;
/* rgb */ color: rgb(75, 26, 118);
/* oklch */ color: oklch(34.7% 0.147 303.7);
Tailwind
colors: {
  custom: {
    50: '#825c9e',
    500: '#4b1a76',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a76;
$custom-light: #825c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a76",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 271.957,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34673,
    "c": 0.14726,
    "h": 303.7
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#4B1A76
secondary
#72AB41
accent
#E7418E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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