#4B1480#4B1480

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

Color values

HEX#4B1480
RGBrgb(75, 20, 128)
HSLhsl(271, 73%, 29%)
HSVhsv(271, 84%, 50%)
CMYKcmyk(41.4%, 84.4%, 0%, 49.8%)
CIE-LABlab(22.14, 45.65, -49.30)
CIE-LCHlch(22.14, 67.19, 312.80°)
OKLaboklab(34.98% 0.084 -0.141)
OKLCHoklch(34.98% 0.164 300.8)
XYZxyz(7.0471, 3.5546, 20.7327)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1480 #498014
analogous
#151480 #4B1480 #80147F
triadic
#4B1480 #804B14 #14804B
tetradic
#4B1480 #801514 #498014 #147F80
square
#4B1480 #801514 #498014 #147F80
split-complementary
#4B1480 #7F8014 #148015
monochromatic
#10041A #2C0C4B #4B1480 #6A1CB5 #8930DF

Accessibility & contrast

On white

12.27
#4B1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1480
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1480#FFFFFF#000000##FFFFFF
##4B14801.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1480;
/* rgb */ color: rgb(75, 20, 128);
/* oklch */ color: oklch(35.0% 0.164 300.8);
Tailwind
colors: {
  custom: {
    50: '#835aa6',
    500: '#4b1480',
    950: '#000000',
  },
}
SCSS
$custom: #4b1480;
$custom-light: #835aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1480",
  "rgb": {
    "r": 75,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 270.556,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34981,
    "c": 0.16408,
    "h": 300.8
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#4B1480
secondary
#77B53B
accent
#F03892
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1480

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

Preview Lab → · Contrast checker → · Palette generator →

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