#4A1872#4A1872

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

Color values

HEX#4A1872
RGBrgb(74, 24, 114)
HSLhsl(273, 65%, 27%)
HSVhsv(273, 79%, 45%)
CMYKcmyk(35.1%, 78.9%, 0%, 55.3%)
CIE-LABlab(21.30, 40.37, -41.74)
CIE-LCHlch(21.30, 58.07, 314.04°)
OKLaboklab(33.97% 0.0831 -0.1188)
OKLCHoklch(33.97% 0.145 305)
XYZxyz(6.1872, 3.3241, 16.2320)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1872 #407218
analogous
#1D1872 #4A1872 #72186D
triadic
#4A1872 #724A18 #18724A
tetradic
#4A1872 #721D18 #407218 #186D72
square
#4A1872 #721D18 #407218 #186D72
split-complementary
#4A1872 #6D7218 #18721D
monochromatic
#100519 #290D3F #4A1872 #6B23A5 #8B31D4

Accessibility & contrast

On white

12.61
#4A1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1872
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1872#FFFFFF#000000##FFFFFF
##4A18721.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#422F44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1872;
/* rgb */ color: rgb(74, 24, 114);
/* oklch */ color: oklch(34.0% 0.145 305.0);
Tailwind
colors: {
  custom: {
    50: '#815b9b',
    500: '#4a1872',
    950: '#000000',
  },
}
SCSS
$custom: #4a1872;
$custom-light: #815b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1872",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 273.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33972,
    "c": 0.145,
    "h": 305
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#4A1872
secondary
#6DA73E
accent
#E8408B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1872

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

Preview Lab → · Contrast checker → · Palette generator →

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