#4A1671#4A1671

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

Color values

HEX#4A1671
RGBrgb(74, 22, 113)
HSLhsl(274, 67%, 26%)
HSVhsv(274, 81%, 44%)
CMYKcmyk(34.5%, 80.5%, 0%, 55.7%)
CIE-LABlab(20.91, 40.98, -41.72)
CIE-LCHlch(20.91, 58.49, 314.49°)
OKLaboklab(33.67% 0.0852 -0.1188)
OKLCHoklch(33.67% 0.146 305.7)
XYZxyz(6.0909, 3.2220, 15.9206)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1671 #3D7116
analogous
#1D1671 #4A1671 #71166B
triadic
#4A1671 #714A16 #16714A
tetradic
#4A1671 #711D16 #3D7116 #166B71
square
#4A1671 #711D16 #3D7116 #166B71
split-complementary
#4A1671 #6B7116 #16711D
monochromatic
#11051A #280C3E #4A1671 #6C20A4 #8D2CD6

Accessibility & contrast

On white

12.77
#4A1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1671
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1671#FFFFFF#000000##FFFFFF
##4A16711.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1671;
/* rgb */ color: rgb(74, 22, 113);
/* oklch */ color: oklch(33.7% 0.146 305.7);
Tailwind
colors: {
  custom: {
    50: '#815a9b',
    500: '#4a1671',
    950: '#000000',
  },
}
SCSS
$custom: #4a1671;
$custom-light: #815a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1671",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 274.286,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33674,
    "c": 0.14619,
    "h": 305.7
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#4A1671
secondary
#6AA73C
accent
#EA3E88
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1671

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

Preview Lab → · Contrast checker → · Palette generator →

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