#4A1971#4A1971

#4A1971 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.143 H 305.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#4A1971
RGBrgb(74, 25, 113)
HSLhsl(273, 64%, 27%)
HSVhsv(273, 78%, 44%)
CMYKcmyk(34.5%, 77.9%, 0%, 55.7%)
CIE-LABlab(21.37, 39.67, -40.98)
CIE-LCHlch(21.37, 57.04, 314.07°)
OKLaboklab(34% 0.0823 -0.1166)
OKLCHoklch(34% 0.143 305.2)
XYZxyz(6.1516, 3.3434, 15.9408)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1971 #407119
analogous
#1E1971 #4A1971 #71196C
triadic
#4A1971 #714A19 #19714A
tetradic
#4A1971 #711E19 #407119 #196C71
square
#4A1971 #711E19 #407119 #196C71
split-complementary
#4A1971 #6C7119 #19711E
monochromatic
#100619 #290E3F #4A1971 #6B24A3 #8B33D2

Accessibility & contrast

On white

12.59
#4A1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4A1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1971
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1971#FFFFFF#000000##FFFFFF
##4A19711.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#432F44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1971;
/* rgb */ color: rgb(74, 25, 113);
/* oklch */ color: oklch(34.0% 0.143 305.2);
Tailwind
colors: {
  custom: {
    50: '#815b9a',
    500: '#4a1971',
    950: '#000000',
  },
}
SCSS
$custom: #4a1971;
$custom-light: #815b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1971",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 273.409,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33997,
    "c": 0.14274,
    "h": 305.2
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#4A1971
secondary
#6DA640
accent
#E7418A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1971

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

Preview Lab → · Contrast checker → · Palette generator →

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