#4C1A85#4C1A85

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

Color values

HEX#4C1A85
RGBrgb(76, 26, 133)
HSLhsl(268, 67%, 31%)
HSVhsv(268, 80%, 52%)
CMYKcmyk(42.9%, 80.5%, 0%, 47.8%)
CIE-LABlab(23.57, 44.69, -50.11)
CIE-LCHlch(23.57, 67.15, 311.73°)
OKLaboklab(36.14% 0.0792 -0.1434)
OKLCHoklch(36.14% 0.164 298.9)
XYZxyz(7.5824, 3.9686, 22.5523)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1A85 #53851A
analogous
#1A1D85 #4C1A85 #811A85
triadic
#4C1A85 #854C1A #1A854C
tetradic
#4C1A85 #851A1D #53851A #1A8581
square
#4C1A85 #851A1D #53851A #1A8581
split-complementary
#4C1A85 #85811A #1D851A
monochromatic
#11061F #2F1052 #4C1A85 #6924B8 #8840DA

Accessibility & contrast

On white

11.71
#4C1A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1A85
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1A85#FFFFFF#000000##FFFFFF
##4C1A851.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#3E374F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1a85;
/* rgb */ color: rgb(76, 26, 133);
/* oklch */ color: oklch(36.1% 0.164 298.9);
Tailwind
colors: {
  custom: {
    50: '#845da9',
    500: '#4c1a85',
    950: '#000000',
  },
}
SCSS
$custom: #4c1a85;
$custom-light: #845da9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1a85",
  "rgb": {
    "r": 76,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 268.037,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36145,
    "c": 0.16379,
    "h": 298.9
  },
  "luminance": 0.03969
}

Semantic roles & 50–950 ramp

primary
#4C1A85
secondary
#81B842
accent
#EA3E9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1A85

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

Preview Lab → · Contrast checker → · Palette generator →

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