#4C1B8D#4C1B8D

#4C1B8D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.171 H 296.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4C1B8D
RGBrgb(76, 27, 141)
HSLhsl(266, 68%, 33%)
HSVhsv(266, 81%, 55%)
CMYKcmyk(46.1%, 80.9%, 0%, 44.7%)
CIE-LABlab(24.46, 46.35, -53.65)
CIE-LCHlch(24.46, 70.90, 310.82°)
OKLaboklab(37% 0.0759 -0.1538)
OKLCHoklch(37% 0.171 296.3)
XYZxyz(8.1789, 4.2433, 25.5822)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B8D #5C8D1B
analogous
#1B238D #4C1B8D #851B8D
triadic
#4C1B8D #8D4C1B #1B8D4C
tetradic
#4C1B8D #8D1B23 #5C8D1B #1B8D85
square
#4C1B8D #8D1B23 #5C8D1B #1B8D85
split-complementary
#4C1B8D #8D851B #238D1B
monochromatic
#150726 #30115A #4C1B8D #6825C0 #8747DC

Accessibility & contrast

On white

11.36
#4C1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B8D
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B8D#FFFFFF#000000##FFFFFF
##4C1B8D1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#3A3B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1b8d;
/* rgb */ color: rgb(76, 27, 141);
/* oklch */ color: oklch(37.0% 0.171 296.3);
Tailwind
colors: {
  custom: {
    50: '#855eaf',
    500: '#4c1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b8d;
$custom-light: #855eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b8d",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 265.789,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36996,
    "c": 0.17147,
    "h": 296.3
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

primary
#4C1B8D
secondary
#8ABD46
accent
#EB3DA0
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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