#4C1B86#4C1B86

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

Color values

HEX#4C1B86
RGBrgb(76, 27, 134)
HSLhsl(267, 66%, 32%)
HSVhsv(267, 80%, 53%)
CMYKcmyk(43.3%, 79.9%, 0%, 47.5%)
CIE-LABlab(23.81, 44.52, -50.35)
CIE-LCHlch(23.81, 67.21, 311.49°)
OKLaboklab(36.34% 0.0781 -0.1441)
OKLCHoklch(36.34% 0.164 298.4)
XYZxyz(7.6744, 4.0415, 22.9254)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B86 #55861B
analogous
#1B1F86 #4C1B86 #821B86
triadic
#4C1B86 #864C1B #1B864C
tetradic
#4C1B86 #861B1F #55861B #1B8682
square
#4C1B86 #861B1F #55861B #1B8682
split-complementary
#4C1B86 #86821B #1F861B
monochromatic
#120620 #2F1153 #4C1B86 #6925B9 #8742D9

Accessibility & contrast

On white

11.61
#4C1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1B86
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B86#FFFFFF#000000##FFFFFF
##4C1B861.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#3D3850
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c1b86;
/* rgb */ color: rgb(76, 27, 134);
/* oklch */ color: oklch(36.3% 0.164 298.4);
Tailwind
colors: {
  custom: {
    50: '#845eaa',
    500: '#4c1b86',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b86;
$custom-light: #845eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b86",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 267.477,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36342,
    "c": 0.16385,
    "h": 298.4
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#4C1B86
secondary
#83B944
accent
#E93E9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1B86

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

Preview Lab → · Contrast checker → · Palette generator →

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