#4C1C87#4C1C87

#4C1C87 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.164 H 298.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4C1C87
RGBrgb(76, 28, 135)
HSLhsl(267, 66%, 32%)
HSVhsv(267, 79%, 53%)
CMYKcmyk(43.7%, 79.3%, 0%, 47.1%)
CIE-LABlab(24.05, 44.35, -50.58)
CIE-LCHlch(24.05, 67.26, 311.24°)
OKLaboklab(36.54% 0.0769 -0.1447)
OKLCHoklch(36.54% 0.164 298)
XYZxyz(7.7678, 4.1161, 23.3022)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1C87 #57871C
analogous
#1C2287 #4C1C87 #821C87
triadic
#4C1C87 #874C1C #1C874C
tetradic
#4C1C87 #871C22 #57871C #1C8782
square
#4C1C87 #871C22 #57871C #1C8782
split-complementary
#4C1C87 #87821C #22871C
monochromatic
#130722 #2F1154 #4C1C87 #6927BA #8745D8

Accessibility & contrast

On white

11.52
#4C1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4C1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1C87
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1C87#FFFFFF#000000##FFFFFF
##4C1C871.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#3D3951
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c1c87;
/* rgb */ color: rgb(76, 28, 135);
/* oklch */ color: oklch(36.5% 0.164 298.0);
Tailwind
colors: {
  custom: {
    50: '#845eab',
    500: '#4c1c87',
    950: '#000000',
  },
}
SCSS
$custom: #4c1c87;
$custom-light: #845eab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1c87",
  "rgb": {
    "r": 76,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 266.916,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3654,
    "c": 0.16391,
    "h": 298
  },
  "luminance": 0.04116
}

Semantic roles & 50–950 ramp

primary
#4C1C87
secondary
#85BA45
accent
#E93F9D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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