#4B1581#4B1581

#4B1581 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.164 H 300.3°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4B1581
RGBrgb(75, 21, 129)
HSLhsl(270, 72%, 29%)
HSVhsv(270, 84%, 51%)
CMYKcmyk(41.9%, 83.7%, 0%, 49.4%)
CIE-LABlab(22.36, 45.53, -49.57)
CIE-LCHlch(22.36, 67.31, 312.57°)
OKLaboklab(35.16% 0.0829 -0.1418)
OKLCHoklch(35.16% 0.164 300.3)
XYZxyz(7.1313, 3.6171, 21.0871)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1581 #4B8115
analogous
#151581 #4B1581 #811581
triadic
#4B1581 #814B15 #15814B
tetradic
#4B1581 #811515 #4B8115 #158181
square
#4B1581 #811515 #4B8115 #158181
split-complementary
#4B1581 #818115 #158115
monochromatic
#0F041A #2C0C4C #4B1581 #6A1EB6 #8833DE

Accessibility & contrast

On white

12.19
#4B1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1581
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1581#FFFFFF#000000##FFFFFF
##4B15811.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#3E344C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1581;
/* rgb */ color: rgb(75, 21, 129);
/* oklch */ color: oklch(35.2% 0.164 300.3);
Tailwind
colors: {
  custom: {
    50: '#835aa7',
    500: '#4b1581',
    950: '#000000',
  },
}
SCSS
$custom: #4b1581;
$custom-light: #835aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1581",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 270,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35163,
    "c": 0.16422,
    "h": 300.3
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#4B1581
secondary
#79B63C
accent
#EF3994
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1581

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

Preview Lab → · Contrast checker → · Palette generator →

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