#4A1371#4A1371

#4A1371 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.149 H 306.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#4A1371
RGBrgb(74, 19, 113)
HSLhsl(275, 71%, 26%)
HSVhsv(275, 83%, 44%)
CMYKcmyk(34.5%, 83.2%, 0%, 55.7%)
CIE-LABlab(20.49, 42.19, -42.40)
CIE-LCHlch(20.49, 59.82, 314.86°)
OKLaboklab(33.38% 0.0879 -0.1207)
OKLCHoklch(33.38% 0.149 306.1)
XYZxyz(6.0369, 3.1139, 15.9026)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1371 #3A7113
analogous
#1B1371 #4A1371 #711369
triadic
#4A1371 #714A13 #13714A
tetradic
#4A1371 #711B13 #3A7113 #136971
square
#4A1371 #711B13 #3A7113 #136971
split-complementary
#4A1371 #697113 #13711B
monochromatic
#11041A #280A3D #4A1371 #6C1CA5 #8F25DA

Accessibility & contrast

On white

12.94
#4A1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4A1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1371
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1371#FFFFFF#000000##FFFFFF
##4A13711.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1371;
/* rgb */ color: rgb(74, 19, 113);
/* oklch */ color: oklch(33.4% 0.149 306.1);
Tailwind
colors: {
  custom: {
    50: '#81589b',
    500: '#4a1371',
    950: '#000000',
  },
}
SCSS
$custom: #4a1371;
$custom-light: #81589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1371",
  "rgb": {
    "r": 74,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 275.106,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33382,
    "c": 0.14937,
    "h": 306.1
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#4A1371
secondary
#66A838
accent
#EE3A85
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1371

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

Preview Lab → · Contrast checker → · Palette generator →

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