#4B1A77#4B1A77

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

Color values

HEX#4B1A77
RGBrgb(75, 26, 119)
HSLhsl(272, 64%, 28%)
HSVhsv(272, 78%, 47%)
CMYKcmyk(37%, 78.2%, 0%, 53.3%)
CIE-LABlab(22.18, 40.93, -43.50)
CIE-LCHlch(22.18, 59.73, 313.25°)
OKLaboklab(34.76% 0.0815 -0.124)
OKLCHoklch(34.76% 0.148 303.3)
XYZxyz(6.6000, 3.5666, 17.7899)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A77 #46771A
analogous
#1C1A77 #4B1A77 #771A74
triadic
#4B1A77 #774B1A #1A774B
tetradic
#4B1A77 #771C1A #46771A #1A7477
square
#4B1A77 #771C1A #46771A #1A7477
split-complementary
#4B1A77 #74771A #1A771C
monochromatic
#100519 #2B0F45 #4B1A77 #6B25A9 #8A38D3

Accessibility & contrast

On white

12.26
#4B1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1A77
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A77#FFFFFF#000000##FFFFFF
##4B1A771.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003575
Tritanopia (blue-blind)
#423247
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1a77;
/* rgb */ color: rgb(75, 26, 119);
/* oklch */ color: oklch(34.8% 0.148 303.3);
Tailwind
colors: {
  custom: {
    50: '#825c9f',
    500: '#4b1a77',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a77;
$custom-light: #825c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a77",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 271.613,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3476,
    "c": 0.14836,
    "h": 303.3
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#4B1A77
secondary
#74AC41
accent
#E7418F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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