#4B1A79#4B1A79

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

Color values

HEX#4B1A79
RGBrgb(75, 26, 121)
HSLhsl(271, 65%, 29%)
HSVhsv(271, 79%, 47%)
CMYKcmyk(38%, 78.5%, 0%, 52.5%)
CIE-LABlab(22.36, 41.44, -44.50)
CIE-LCHlch(22.36, 60.81, 312.96°)
OKLaboklab(34.94% 0.081 -0.1269)
OKLCHoklch(34.94% 0.151 302.5)
XYZxyz(6.7214, 3.6151, 18.4291)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A79 #48791A
analogous
#1B1A79 #4B1A79 #791A78
triadic
#4B1A79 #794B1A #1A794B
tetradic
#4B1A79 #791B1A #48791A #1A7879
square
#4B1A79 #791B1A #48791A #1A7879
split-complementary
#4B1A79 #78791A #1A791B
monochromatic
#100519 #2C0F47 #4B1A79 #6A25AB #8939D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4B1A79#FFFFFF#000000##FFFFFF
##4B1A791.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)
#00357C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#413248
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1a79;
/* rgb */ color: rgb(75, 26, 121);
/* oklch */ color: oklch(34.9% 0.151 302.5);
Tailwind
colors: {
  custom: {
    50: '#825ca0',
    500: '#4b1a79',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a79;
$custom-light: #825ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a79",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 270.947,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34935,
    "c": 0.15055,
    "h": 302.5
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#4B1A79
secondary
#76AD41
accent
#E84091
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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