#4B1871#4B1871

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

Color values

HEX#4B1871
RGBrgb(75, 24, 113)
HSLhsl(274, 65%, 27%)
HSVhsv(274, 79%, 44%)
CMYKcmyk(33.6%, 78.8%, 0%, 55.7%)
CIE-LABlab(21.36, 40.32, -40.98)
CIE-LCHlch(21.36, 57.49, 314.53°)
OKLaboklab(34.02% 0.0848 -0.1166)
OKLCHoklch(34.02% 0.144 306)
XYZxyz(6.2083, 3.3414, 15.9375)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1871 #3E7118
analogous
#1E1871 #4B1871 #71186B
triadic
#4B1871 #714B18 #18714B
tetradic
#4B1871 #711E18 #3E7118 #186B71
square
#4B1871 #711E18 #3E7118 #186B71
split-complementary
#4B1871 #6B7118 #18711E
monochromatic
#110519 #290D3F #4B1871 #6D23A3 #8E30D3

Accessibility & contrast

On white

12.59
#4B1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4B1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1871
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1871#FFFFFF#000000##FFFFFF
##4B18711.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1871;
/* rgb */ color: rgb(75, 24, 113);
/* oklch */ color: oklch(34.0% 0.144 306.0);
Tailwind
colors: {
  custom: {
    50: '#825b9a',
    500: '#4b1871',
    950: '#000000',
  },
}
SCSS
$custom: #4b1871;
$custom-light: #825b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1871",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 274.382,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34023,
    "c": 0.14418,
    "h": 306
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#4B1871
secondary
#6BA63E
accent
#E84088
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1871

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

Preview Lab → · Contrast checker → · Palette generator →

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