#4A1876#4A1876

#4A1876 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.149 H 303.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4A1876
RGBrgb(74, 24, 118)
HSLhsl(272, 66%, 28%)
HSVhsv(272, 80%, 46%)
CMYKcmyk(37.3%, 79.7%, 0%, 53.7%)
CIE-LABlab(21.64, 41.37, -43.75)
CIE-LCHlch(21.64, 60.22, 313.40°)
OKLaboklab(34.32% 0.0821 -0.1247)
OKLCHoklch(34.32% 0.149 303.3)
XYZxyz(6.4199, 3.4171, 17.4574)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1876 #447618
analogous
#1B1876 #4A1876 #761873
triadic
#4A1876 #764A18 #18764A
tetradic
#4A1876 #761B18 #447618 #187376
square
#4A1876 #761B18 #447618 #187376
split-complementary
#4A1876 #737618 #18761B
monochromatic
#100519 #2A0E43 #4A1876 #6A22A9 #8933D5

Accessibility & contrast

On white

12.47
#4A1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4A1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1876
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1876#FFFFFF#000000##FFFFFF
##4A18761.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#413046
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1876;
/* rgb */ color: rgb(74, 24, 118);
/* oklch */ color: oklch(34.3% 0.149 303.3);
Tailwind
colors: {
  custom: {
    50: '#815b9e',
    500: '#4a1876',
    950: '#000000',
  },
}
SCSS
$custom: #4a1876;
$custom-light: #815b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1876",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 271.915,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34322,
    "c": 0.14932,
    "h": 303.3
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#4A1876
secondary
#71AB3F
accent
#E93F8E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1876

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

Preview Lab → · Contrast checker → · Palette generator →

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