#4A1176#4A1176

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

Color values

HEX#4A1176
RGBrgb(74, 17, 118)
HSLhsl(274, 75%, 26%)
HSVhsv(274, 86%, 46%)
CMYKcmyk(37.3%, 85.6%, 0%, 53.7%)
CIE-LABlab(20.69, 44.13, -45.30)
CIE-LCHlch(20.69, 63.24, 314.25°)
OKLaboklab(33.66% 0.088 -0.1292)
OKLCHoklch(33.66% 0.156 304.2)
XYZxyz(6.2937, 3.1648, 17.4153)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1176 #3D7611
analogous
#171176 #4A1176 #761170
triadic
#4A1176 #764A11 #11764A
tetradic
#4A1176 #761711 #3D7611 #117076
square
#4A1176 #761711 #3D7611 #117076
split-complementary
#4A1176 #707611 #117617
monochromatic
#11041B #280941 #4A1176 #6C19AB #8D22DF

Accessibility & contrast

On white

12.86
#4A1176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4A1176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1176
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1176#FFFFFF#000000##FFFFFF
##4A11761.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#412D45
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a1176;
/* rgb */ color: rgb(74, 17, 118);
/* oklch */ color: oklch(33.7% 0.156 304.2);
Tailwind
colors: {
  custom: {
    50: '#82589e',
    500: '#4a1176',
    950: '#000000',
  },
}
SCSS
$custom: #4a1176;
$custom-light: #82589e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1176",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 273.861,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33659,
    "c": 0.15635,
    "h": 304.2
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#4A1176
secondary
#6AAD36
accent
#F13688
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1176

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

Preview Lab → · Contrast checker → · Palette generator →

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