#4A1171#4A1171

#4A1171 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.151 H 306.3°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#4A1171
RGBrgb(74, 17, 113)
HSLhsl(276, 74%, 25%)
HSVhsv(276, 85%, 44%)
CMYKcmyk(34.5%, 85%, 0%, 55.7%)
CIE-LABlab(20.24, 42.93, -42.82)
CIE-LCHlch(20.24, 60.63, 315.07°)
OKLaboklab(33.21% 0.0896 -0.1219)
OKLCHoklch(33.21% 0.151 306.3)
XYZxyz(6.0045, 3.0491, 15.8918)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1171 #387111
analogous
#1A1171 #4A1171 #711168
triadic
#4A1171 #714A11 #11714A
tetradic
#4A1171 #711A11 #387111 #116871
square
#4A1171 #711A11 #387111 #116871
split-complementary
#4A1171 #687111 #11711A
monochromatic
#11041B #27093C #4A1171 #6D19A6 #9021DB

Accessibility & contrast

On white

13.05
#4A1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4A1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1171
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1171#FFFFFF#000000##FFFFFF
##4A11711.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#432B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a1171;
/* rgb */ color: rgb(74, 17, 113);
/* oklch */ color: oklch(33.2% 0.151 306.3);
Tailwind
colors: {
  custom: {
    50: '#81589b',
    500: '#4a1171',
    950: '#000000',
  },
}
SCSS
$custom: #4a1171;
$custom-light: #81589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1171",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 275.625,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33205,
    "c": 0.1513,
    "h": 306.3
  },
  "luminance": 0.03049
}

Semantic roles & 50–950 ramp

primary
#4A1171
secondary
#64A836
accent
#F13783
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1171

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

Preview Lab → · Contrast checker → · Palette generator →

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