#4C1A97#4C1A97

#4C1A97 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.183 H 293.6°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#4C1A97
RGBrgb(76, 26, 151)
HSLhsl(264, 71%, 35%)
HSVhsv(264, 83%, 59%)
CMYKcmyk(49.7%, 82.8%, 0%, 40.8%)
CIE-LABlab(25.29, 49.37, -58.48)
CIE-LCHlch(25.29, 76.53, 310.17°)
OKLaboklab(37.87% 0.0733 -0.1679)
OKLCHoklch(37.87% 0.183 293.6)
XYZxyz(8.9342, 4.5094, 29.6718)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1A97 #65971A
analogous
#1A2797 #4C1A97 #8B1A97
triadic
#4C1A97 #974C1A #1A974C
tetradic
#4C1A97 #971A27 #65971A #1A978B
square
#4C1A97 #971A27 #65971A #1A978B
split-complementary
#4C1A97 #978B1A #27971A
monochromatic
#17082F #321163 #4C1A97 #6623CB #874BE0

Accessibility & contrast

On white

11.04
#4C1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4C1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1A97
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1A97#FFFFFF#000000##FFFFFF
##4C1A971.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#343F5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c1a97;
/* rgb */ color: rgb(76, 26, 151);
/* oklch */ color: oklch(37.9% 0.183 293.6);
Tailwind
colors: {
  custom: {
    50: '#875eb7',
    500: '#4c1a97',
    950: '#000000',
  },
}
SCSS
$custom: #4c1a97;
$custom-light: #875eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1a97",
  "rgb": {
    "r": 76,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 264,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37865,
    "c": 0.18318,
    "h": 293.6
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#4C1A97
secondary
#92C24B
accent
#ED3AA6
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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