#4B1580#4B1580

#4B1580 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.163 H 300.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4B1580
RGBrgb(75, 21, 128)
HSLhsl(270, 72%, 29%)
HSVhsv(270, 84%, 50%)
CMYKcmyk(41.4%, 83.6%, 0%, 49.8%)
CIE-LABlab(22.27, 45.28, -49.09)
CIE-LCHlch(22.27, 66.78, 312.69°)
OKLaboklab(35.07% 0.0832 -0.1404)
OKLCHoklch(35.07% 0.163 300.7)
XYZxyz(7.0651, 3.5906, 20.7387)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1580 #4A8015
analogous
#151580 #4B1580 #801580
triadic
#4B1580 #804B15 #15804B
tetradic
#4B1580 #801515 #4A8015 #158080
square
#4B1580 #801515 #4A8015 #158080
split-complementary
#4B1580 #808015 #158015
monochromatic
#0F041A #2C0C4B #4B1580 #6A1EB5 #8932DD

Accessibility & contrast

On white

12.22
#4B1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1580
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1580#FFFFFF#000000##FFFFFF
##4B15801.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#3F334B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1580;
/* rgb */ color: rgb(75, 21, 128);
/* oklch */ color: oklch(35.1% 0.163 300.7);
Tailwind
colors: {
  custom: {
    50: '#835aa6',
    500: '#4b1580',
    950: '#000000',
  },
}
SCSS
$custom: #4b1580;
$custom-light: #835aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1580",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 270.28,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3507,
    "c": 0.16317,
    "h": 300.7
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#4B1580
secondary
#78B53C
accent
#EF3993
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1580

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

Preview Lab → · Contrast checker → · Palette generator →

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