#4A1156#4A1156

#4A1156 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.0% C 0.124 H 320.0°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#4A1156
RGBrgb(74, 17, 86)
HSLhsl(290, 67%, 20%)
HSVhsv(290, 80%, 34%)
CMYKcmyk(14%, 80.2%, 0%, 66.3%)
CIE-LABlab(18.05, 36.81, -28.55)
CIE-LCHlch(18.05, 46.59, 322.20°)
OKLaboklab(30.98% 0.0953 -0.0801)
OKLCHoklch(30.98% 0.124 320)
XYZxyz(4.7040, 2.5289, 9.0426)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1156 #1D5611
analogous
#271156 #4A1156 #56113F
triadic
#4A1156 #564A11 #11564A
tetradic
#4A1156 #562711 #1D5611 #113F56
square
#4A1156 #562711 #1D5611 #113F56
split-complementary
#4A1156 #3F5611 #115627
monochromatic
#16051A #1E0723 #4A1156 #761B89 #A225BC

Accessibility & contrast

On white

13.95
#4A1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4A1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1156
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1156#FFFFFF#000000##FFFFFF
##4A11561.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#172E54
Tritanopia (blue-blind)
#4A1F32
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a1156;
/* rgb */ color: rgb(74, 17, 86);
/* oklch */ color: oklch(31.0% 0.124 320.0);
Tailwind
colors: {
  custom: {
    50: '#7f5686',
    500: '#4a1156',
    950: '#000000',
  },
}
SCSS
$custom: #4a1156;
$custom-light: #7f5686;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1156",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 289.565,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.30976,
    "c": 0.12447,
    "h": 320
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#4A1156
secondary
#448F34
accent
#EA3E5C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A1156

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

Preview Lab → · Contrast checker → · Palette generator →

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