#4B1A72#4B1A72

#4B1A72 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.143 H 305.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#4B1A72
RGBrgb(75, 26, 114)
HSLhsl(273, 63%, 27%)
HSVhsv(273, 77%, 45%)
CMYKcmyk(34.2%, 77.2%, 0%, 55.3%)
CIE-LABlab(21.76, 39.67, -40.98)
CIE-LCHlch(21.76, 57.03, 314.07°)
OKLaboklab(34.33% 0.0826 -0.1166)
OKLCHoklch(34.33% 0.143 305.3)
XYZxyz(6.3076, 3.4496, 16.2499)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A72 #41721A
analogous
#1F1A72 #4B1A72 #721A6D
triadic
#4B1A72 #724B1A #1A724B
tetradic
#4B1A72 #721F1A #41721A #1A6D72
square
#4B1A72 #721F1A #41721A #1A6D72
split-complementary
#4B1A72 #6D721A #1A721F
monochromatic
#100619 #2A0F40 #4B1A72 #6C25A4 #8C35D1

Accessibility & contrast

On white

12.43
#4B1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4B1A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1A72
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A72#FFFFFF#000000##FFFFFF
##4B1A721.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#442F44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b1a72;
/* rgb */ color: rgb(75, 26, 114);
/* oklch */ color: oklch(34.3% 0.143 305.3);
Tailwind
colors: {
  custom: {
    50: '#815c9b',
    500: '#4b1a72',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a72;
$custom-light: #815c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a72",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 273.409,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34331,
    "c": 0.14288,
    "h": 305.3
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#4B1A72
secondary
#6EA741
accent
#E6428B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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