#4A1571#4A1571

#4A1571 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.147 H 305.8°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#4A1571
RGBrgb(74, 21, 113)
HSLhsl(275, 69%, 26%)
HSVhsv(275, 81%, 44%)
CMYKcmyk(34.5%, 81.4%, 0%, 55.7%)
CIE-LABlab(20.77, 41.40, -41.96)
CIE-LCHlch(20.77, 58.94, 314.62°)
OKLaboklab(33.57% 0.0862 -0.1194)
OKLCHoklch(33.57% 0.147 305.8)
XYZxyz(6.0722, 3.1845, 15.9144)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1571 #3C7115
analogous
#1C1571 #4A1571 #71156A
triadic
#4A1571 #714A15 #15714A
tetradic
#4A1571 #711C15 #3C7115 #156A71
square
#4A1571 #711C15 #3C7115 #156A71
split-complementary
#4A1571 #6A7115 #15711C
monochromatic
#11051A #280B3D #4A1571 #6C1FA5 #8D29D7

Accessibility & contrast

On white

12.83
#4A1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4A1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1571
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1571#FFFFFF#000000##FFFFFF
##4A15711.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#00326F
Tritanopia (blue-blind)
#432D43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a1571;
/* rgb */ color: rgb(74, 21, 113);
/* oklch */ color: oklch(33.6% 0.147 305.8);
Tailwind
colors: {
  custom: {
    50: '#81599b',
    500: '#4a1571',
    950: '#000000',
  },
}
SCSS
$custom: #4a1571;
$custom-light: #81599b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1571",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 274.565,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33574,
    "c": 0.14728,
    "h": 305.8
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#4A1571
secondary
#69A73B
accent
#EB3C87
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1571

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

Preview Lab → · Contrast checker → · Palette generator →

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