#4C1A8B#4C1A8B

#4C1A8B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.170 H 297.0°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4C1A8B
RGBrgb(76, 26, 139)
HSLhsl(267, 68%, 32%)
HSVhsv(267, 81%, 55%)
CMYKcmyk(45.3%, 81.3%, 0%, 45.5%)
CIE-LABlab(24.13, 46.25, -52.95)
CIE-LCHlch(24.13, 70.30, 311.13°)
OKLaboklab(36.71% 0.0773 -0.1517)
OKLCHoklch(36.71% 0.17 297)
XYZxyz(8.0089, 4.1392, 24.7981)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1A8B #598B1A
analogous
#1A208B #4C1A8B #851A8B
triadic
#4C1A8B #8B4C1A #1A8B4C
tetradic
#4C1A8B #8B1A20 #598B1A #1A8B85
square
#4C1A8B #8B1A20 #598B1A #1A8B85
split-complementary
#4C1A8B #8B851A #208B1A
monochromatic
#140724 #301057 #4C1A8B #6824BF #8743DC

Accessibility & contrast

On white

11.49
#4C1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4C1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1A8B
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1A8B#FFFFFF#000000##FFFFFF
##4C1A8B1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#3B3A53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c1a8b;
/* rgb */ color: rgb(76, 26, 139);
/* oklch */ color: oklch(36.7% 0.170 297.0);
Tailwind
colors: {
  custom: {
    50: '#855dae',
    500: '#4c1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c1a8b;
$custom-light: #855dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1a8b",
  "rgb": {
    "r": 76,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 266.549,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36706,
    "c": 0.17028,
    "h": 297
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#4C1A8B
secondary
#87BD44
accent
#EB3C9E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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