#4C1A87#4C1A87

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

Color values

HEX#4C1A87
RGBrgb(76, 26, 135)
HSLhsl(268, 68%, 32%)
HSVhsv(268, 81%, 53%)
CMYKcmyk(43.7%, 80.7%, 0%, 47.1%)
CIE-LABlab(23.75, 45.21, -51.07)
CIE-LCHlch(23.75, 68.20, 311.52°)
OKLaboklab(36.33% 0.0786 -0.1462)
OKLCHoklch(36.33% 0.166 298.3)
XYZxyz(7.7219, 4.0244, 23.2869)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1A87 #55871A
analogous
#1A1F87 #4C1A87 #831A87
triadic
#4C1A87 #874C1A #1A874C
tetradic
#4C1A87 #871A1F #55871A #1A8783
square
#4C1A87 #871A1F #55871A #1A8783
split-complementary
#4C1A87 #87831A #1F871A
monochromatic
#120620 #2F1054 #4C1A87 #6924BA #8741DA

Accessibility & contrast

On white

11.63
#4C1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1A87
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1A87#FFFFFF#000000##FFFFFF
##4C1A871.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1a87;
/* rgb */ color: rgb(76, 26, 135);
/* oklch */ color: oklch(36.3% 0.166 298.3);
Tailwind
colors: {
  custom: {
    50: '#845dab',
    500: '#4c1a87',
    950: '#000000',
  },
}
SCSS
$custom: #4c1a87;
$custom-light: #845dab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1a87",
  "rgb": {
    "r": 76,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 267.523,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36331,
    "c": 0.16595,
    "h": 298.3
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#4C1A87
secondary
#83BA42
accent
#EB3D9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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