#4C1B97#4C1B97

#4C1B97 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.182 H 293.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4C1B97
RGBrgb(76, 27, 151)
HSLhsl(264, 70%, 35%)
HSVhsv(264, 82%, 59%)
CMYKcmyk(49.7%, 82.1%, 0%, 40.8%)
CIE-LABlab(25.43, 48.97, -58.25)
CIE-LCHlch(25.43, 76.10, 310.05°)
OKLaboklab(37.96% 0.0726 -0.1672)
OKLCHoklch(37.96% 0.182 293.5)
XYZxyz(8.9568, 4.5544, 29.6793)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B97 #66971B
analogous
#1B2897 #4C1B97 #8A1B97
triadic
#4C1B97 #974C1B #1B974C
tetradic
#4C1B97 #971B28 #66971B #1B978A
square
#4C1B97 #971B28 #66971B #1B978A
split-complementary
#4C1B97 #978A1B #28971B
monochromatic
#18082F #321263 #4C1B97 #6624CB #874DDF

Accessibility & contrast

On white

10.99
#4C1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4C1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B97
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B97#FFFFFF#000000##FFFFFF
##4C1B971.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1b97;
/* rgb */ color: rgb(76, 27, 151);
/* oklch */ color: oklch(38.0% 0.182 293.5);
Tailwind
colors: {
  custom: {
    50: '#875fb7',
    500: '#4c1b97',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b97;
$custom-light: #875fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b97",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 263.71,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37959,
    "c": 0.18231,
    "h": 293.5
  },
  "luminance": 0.04555
}

Semantic roles & 50–950 ramp

primary
#4C1B97
secondary
#93C14C
accent
#EC3BA6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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