#4A1C87#4A1C87

#4A1C87 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.164 H 296.8°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4A1C87
RGBrgb(74, 28, 135)
HSLhsl(266, 66%, 32%)
HSVhsv(266, 79%, 53%)
CMYKcmyk(45.2%, 79.3%, 0%, 47.1%)
CIE-LABlab(23.79, 44.01, -51.02)
CIE-LCHlch(23.79, 67.38, 310.78°)
OKLaboklab(36.3% 0.0738 -0.1461)
OKLCHoklch(36.3% 0.164 296.8)
XYZxyz(7.6113, 4.0355, 23.2949)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C87 #59871C
analogous
#1C2487 #4A1C87 #801C87
triadic
#4A1C87 #874A1C #1C874A
tetradic
#4A1C87 #871C24 #59871C #1C8780
square
#4A1C87 #871C24 #59871C #1C8780
split-complementary
#4A1C87 #87801C #24871C
monochromatic
#120722 #2E1154 #4A1C87 #6627BA #8445D8

Accessibility & contrast

On white

11.62
#4A1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4A1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1C87
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C87#FFFFFF#000000##FFFFFF
##4A1C871.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#3A3951
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1c87;
/* rgb */ color: rgb(74, 28, 135);
/* oklch */ color: oklch(36.3% 0.164 296.8);
Tailwind
colors: {
  custom: {
    50: '#835eab',
    500: '#4a1c87',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c87;
$custom-light: #835eab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c87",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 265.794,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36298,
    "c": 0.16367,
    "h": 296.8
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#4A1C87
secondary
#88BA45
accent
#E93FA0
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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