#4A1572#4A1572

#4A1572 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.148 H 305.4°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#4A1572
RGBrgb(74, 21, 114)
HSLhsl(274, 69%, 26%)
HSVhsv(274, 82%, 45%)
CMYKcmyk(35.1%, 81.6%, 0%, 55.3%)
CIE-LABlab(20.85, 41.64, -42.46)
CIE-LCHlch(20.85, 59.47, 314.44°)
OKLaboklab(33.66% 0.0859 -0.1209)
OKLCHoklch(33.66% 0.148 305.4)
XYZxyz(6.1288, 3.2071, 16.2125)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1572 #3D7215
analogous
#1C1572 #4A1572 #72156C
triadic
#4A1572 #724A15 #15724A
tetradic
#4A1572 #721C15 #3D7215 #156C72
square
#4A1572 #721C15 #3D7215 #156C72
split-complementary
#4A1572 #6C7215 #15721C
monochromatic
#11051A #280B3E #4A1572 #6C1FA6 #8D2AD8

Accessibility & contrast

On white

12.79
#4A1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1572
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1572#FFFFFF#000000##FFFFFF
##4A15721.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#432D43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a1572;
/* rgb */ color: rgb(74, 21, 114);
/* oklch */ color: oklch(33.7% 0.148 305.4);
Tailwind
colors: {
  custom: {
    50: '#81599b',
    500: '#4a1572',
    950: '#000000',
  },
}
SCSS
$custom: #4a1572;
$custom-light: #81599b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1572",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 274.194,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33662,
    "c": 0.14833,
    "h": 305.4
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#4A1572
secondary
#6AA83B
accent
#EC3C88
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1572

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

Preview Lab → · Contrast checker → · Palette generator →

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