#4A1581#4A1581

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

Color values

HEX#4A1581
RGBrgb(74, 21, 129)
HSLhsl(269, 72%, 29%)
HSVhsv(269, 84%, 51%)
CMYKcmyk(42.6%, 83.7%, 0%, 49.4%)
CIE-LABlab(22.22, 45.37, -49.81)
CIE-LCHlch(22.22, 67.38, 312.33°)
OKLaboklab(35.03% 0.0813 -0.1425)
OKLCHoklch(35.03% 0.164 299.7)
XYZxyz(7.0536, 3.5771, 21.0834)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1581 #4C8115
analogous
#151681 #4A1581 #801581
triadic
#4A1581 #814A15 #15814A
tetradic
#4A1581 #811516 #4C8115 #158180
square
#4A1581 #811516 #4C8115 #158180
split-complementary
#4A1581 #818015 #168115
monochromatic
#0F041A #2C0C4C #4A1581 #681EB6 #8733DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A1581#FFFFFF#000000##FFFFFF
##4A15811.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)
#3D344C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1581;
/* rgb */ color: rgb(74, 21, 129);
/* oklch */ color: oklch(35.0% 0.164 299.7);
Tailwind
colors: {
  custom: {
    50: '#835aa7',
    500: '#4a1581',
    950: '#000000',
  },
}
SCSS
$custom: #4a1581;
$custom-light: #835aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1581",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 269.444,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35034,
    "c": 0.16407,
    "h": 299.7
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#4A1581
secondary
#7AB63C
accent
#EF3996
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1581

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

Preview Lab → · Contrast checker → · Palette generator →

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