#4A1871#4A1871

#4A1871 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.144 H 305.4°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#4A1871
RGBrgb(74, 24, 113)
HSLhsl(274, 65%, 27%)
HSVhsv(274, 79%, 44%)
CMYKcmyk(34.5%, 78.8%, 0%, 55.7%)
CIE-LABlab(21.21, 40.12, -41.23)
CIE-LCHlch(21.21, 57.53, 314.22°)
OKLaboklab(33.89% 0.0833 -0.1173)
OKLCHoklch(33.89% 0.144 305.4)
XYZxyz(6.1306, 3.3014, 15.9338)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1871 #3F7118
analogous
#1E1871 #4A1871 #71186C
triadic
#4A1871 #714A18 #18714A
tetradic
#4A1871 #711E18 #3F7118 #186C71
square
#4A1871 #711E18 #3F7118 #186C71
split-complementary
#4A1871 #6C7118 #18711E
monochromatic
#110519 #290D3F #4A1871 #6B23A3 #8C30D3

Accessibility & contrast

On white

12.65
#4A1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4A1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1871
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1871#FFFFFF#000000##FFFFFF
##4A18711.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1871;
/* rgb */ color: rgb(74, 24, 113);
/* oklch */ color: oklch(33.9% 0.144 305.4);
Tailwind
colors: {
  custom: {
    50: '#815b9a',
    500: '#4a1871',
    950: '#000000',
  },
}
SCSS
$custom: #4a1871;
$custom-light: #815b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1871",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 273.708,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33886,
    "c": 0.14392,
    "h": 305.4
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#4A1871
secondary
#6CA63E
accent
#E8408A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1871

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

Preview Lab → · Contrast checker → · Palette generator →

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