#4A1574#4A1574

#4A1574 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.150 H 304.6°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4A1574
RGBrgb(74, 21, 116)
HSLhsl(273, 69%, 27%)
HSVhsv(273, 82%, 45%)
CMYKcmyk(36.2%, 81.9%, 0%, 54.5%)
CIE-LABlab(21.03, 42.13, -43.46)
CIE-LCHlch(21.03, 60.53, 314.11°)
OKLaboklab(33.84% 0.0853 -0.1239)
OKLCHoklch(33.84% 0.15 304.6)
XYZxyz(6.2439, 3.2532, 16.8186)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1574 #3F7415
analogous
#1B1574 #4A1574 #74156F
triadic
#4A1574 #744A15 #15744A
tetradic
#4A1574 #741B15 #3F7415 #156F74
square
#4A1574 #741B15 #3F7415 #156F74
split-complementary
#4A1574 #6F7415 #15741B
monochromatic
#11051A #290C40 #4A1574 #6B1EA8 #8C2BD9

Accessibility & contrast

On white

12.72
#4A1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4A1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1574
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1574#FFFFFF#000000##FFFFFF
##4A15741.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#422E44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1574;
/* rgb */ color: rgb(74, 21, 116);
/* oklch */ color: oklch(33.8% 0.150 304.6);
Tailwind
colors: {
  custom: {
    50: '#81599d',
    500: '#4a1574',
    950: '#000000',
  },
}
SCSS
$custom: #4a1574;
$custom-light: #81599d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1574",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 273.474,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33839,
    "c": 0.15043,
    "h": 304.6
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#4A1574
secondary
#6CAA3B
accent
#EC3C8A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1574

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

Preview Lab → · Contrast checker → · Palette generator →

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