#4B1481#4B1481

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

Color values

HEX#4B1481
RGBrgb(75, 20, 129)
HSLhsl(270, 73%, 29%)
HSVhsv(270, 84%, 51%)
CMYKcmyk(41.9%, 84.5%, 0%, 49.4%)
CIE-LABlab(22.24, 45.90, -49.78)
CIE-LCHlch(22.24, 67.71, 312.68°)
OKLaboklab(35.08% 0.0836 -0.1424)
OKLCHoklch(35.08% 0.165 300.4)
XYZxyz(7.1133, 3.5811, 21.0811)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1481 #4A8114
analogous
#151481 #4B1481 #811481
triadic
#4B1481 #814B14 #14814B
tetradic
#4B1481 #811514 #4A8114 #148181
square
#4B1481 #811514 #4A8114 #148181
split-complementary
#4B1481 #818114 #148115
monochromatic
#0F041A #2C0C4C #4B1481 #6A1CB6 #8930DF

Accessibility & contrast

On white

12.24
#4B1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1481
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1481#FFFFFF#000000##FFFFFF
##4B14811.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1481;
/* rgb */ color: rgb(75, 20, 129);
/* oklch */ color: oklch(35.1% 0.165 300.4);
Tailwind
colors: {
  custom: {
    50: '#835aa7',
    500: '#4b1481',
    950: '#000000',
  },
}
SCSS
$custom: #4b1481;
$custom-light: #835aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1481",
  "rgb": {
    "r": 75,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 270.275,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35075,
    "c": 0.16512,
    "h": 300.4
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#4B1481
secondary
#78B63B
accent
#F03893
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1481

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

Preview Lab → · Contrast checker → · Palette generator →

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