#4A1B79#4A1B79

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

Color values

HEX#4A1B79
RGBrgb(74, 27, 121)
HSLhsl(270, 64%, 29%)
HSVhsv(270, 78%, 47%)
CMYKcmyk(38.8%, 77.7%, 0%, 52.5%)
CIE-LABlab(22.37, 40.79, -44.48)
CIE-LCHlch(22.37, 60.35, 312.53°)
OKLaboklab(34.92% 0.0785 -0.1269)
OKLCHoklch(34.92% 0.149 301.7)
XYZxyz(6.6663, 3.6202, 18.4330)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B79 #4A791B
analogous
#1B1B79 #4A1B79 #791B79
triadic
#4A1B79 #794A1B #1B794A
tetradic
#4A1B79 #791B1B #4A791B #1B7979
square
#4A1B79 #791B1B #4A791B #1B7979
split-complementary
#4A1B79 #79791B #1B791B
monochromatic
#0F0619 #2B1047 #4A1B79 #6926AB #873BD3

Accessibility & contrast

On white

12.18
#4A1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1B79
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B79#FFFFFF#000000##FFFFFF
##4A1B791.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#403349
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1b79;
/* rgb */ color: rgb(74, 27, 121);
/* oklch */ color: oklch(34.9% 0.149 301.7);
Tailwind
colors: {
  custom: {
    50: '#815da0',
    500: '#4a1b79',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b79;
$custom-light: #815da0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b79",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 270,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34917,
    "c": 0.1492,
    "h": 301.7
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#4A1B79
secondary
#78AD43
accent
#E74194
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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