#4A1B77#4A1B77

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

Color values

HEX#4A1B77
RGBrgb(74, 27, 119)
HSLhsl(271, 63%, 29%)
HSVhsv(271, 77%, 47%)
CMYKcmyk(37.8%, 77.3%, 0%, 53.3%)
CIE-LABlab(22.20, 40.28, -43.48)
CIE-LCHlch(22.20, 59.27, 312.81°)
OKLaboklab(34.74% 0.0789 -0.124)
OKLCHoklch(34.74% 0.147 302.5)
XYZxyz(6.5450, 3.5716, 17.7938)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B77 #48771B
analogous
#1C1B77 #4A1B77 #771B76
triadic
#4A1B77 #774A1B #1B774A
tetradic
#4A1B77 #771C1B #48771B #1B7677
square
#4A1B77 #771C1B #48771B #1B7677
split-complementary
#4A1B77 #76771B #1B771C
monochromatic
#100619 #2B1045 #4A1B77 #6926A9 #883AD2

Accessibility & contrast

On white

12.25
#4A1B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1B77
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B77#FFFFFF#000000##FFFFFF
##4A1B771.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1b77;
/* rgb */ color: rgb(74, 27, 119);
/* oklch */ color: oklch(34.7% 0.147 302.5);
Tailwind
colors: {
  custom: {
    50: '#815d9f',
    500: '#4a1b77',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b77;
$custom-light: #815d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b77",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 270.652,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34742,
    "c": 0.14697,
    "h": 302.5
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#4A1B77
secondary
#76AB42
accent
#E64292
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1B77

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

Preview Lab → · Contrast checker → · Palette generator →

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