#4A1A87#4A1A87

#4A1A87 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.166 H 297.1°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#4A1A87
RGBrgb(74, 26, 135)
HSLhsl(266, 68%, 32%)
HSVhsv(266, 81%, 53%)
CMYKcmyk(45.2%, 80.7%, 0%, 47.1%)
CIE-LABlab(23.48, 44.89, -51.52)
CIE-LCHlch(23.48, 68.33, 311.07°)
OKLaboklab(36.09% 0.0754 -0.1476)
OKLCHoklch(36.09% 0.166 297.1)
XYZxyz(7.5655, 3.9437, 23.2796)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A87 #57871A
analogous
#1A2187 #4A1A87 #811A87
triadic
#4A1A87 #874A1A #1A874A
tetradic
#4A1A87 #871A21 #57871A #1A8781
square
#4A1A87 #871A21 #57871A #1A8781
split-complementary
#4A1A87 #87811A #21871A
monochromatic
#120620 #2E1054 #4A1A87 #6624BA #8541DA

Accessibility & contrast

On white

11.74
#4A1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4A1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A87
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A87#FFFFFF#000000##FFFFFF
##4A1A871.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#3A3850
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1a87;
/* rgb */ color: rgb(74, 26, 135);
/* oklch */ color: oklch(36.1% 0.166 297.1);
Tailwind
colors: {
  custom: {
    50: '#835dab',
    500: '#4a1a87',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a87;
$custom-light: #835dab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a87",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 266.422,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36086,
    "c": 0.16572,
    "h": 297.1
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#4A1A87
secondary
#86BA42
accent
#EB3D9E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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