#4C1D88#4C1D88

#4C1D88 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.164 H 297.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#4C1D88
RGBrgb(76, 29, 136)
HSLhsl(266, 65%, 32%)
HSVhsv(266, 79%, 53%)
CMYKcmyk(44.1%, 78.7%, 0%, 46.7%)
CIE-LABlab(24.30, 44.16, -50.80)
CIE-LCHlch(24.30, 67.31, 311.00°)
OKLaboklab(36.74% 0.0758 -0.1454)
OKLCHoklch(36.74% 0.164 297.5)
XYZxyz(7.8626, 4.1927, 23.6828)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D88 #59881D
analogous
#1D2488 #4C1D88 #811D88
triadic
#4C1D88 #884C1D #1D884C
tetradic
#4C1D88 #881D24 #59881D #1D8881
square
#4C1D88 #881D24 #59881D #1D8881
split-complementary
#4C1D88 #88811D #24881D
monochromatic
#140723 #301256 #4C1D88 #6828BA #8748D8

Accessibility & contrast

On white

11.42
#4C1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D88
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D88#FFFFFF#000000##FFFFFF
##4C1D881.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003886
Tritanopia (blue-blind)
#3C3A52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1d88;
/* rgb */ color: rgb(76, 29, 136);
/* oklch */ color: oklch(36.7% 0.164 297.5);
Tailwind
colors: {
  custom: {
    50: '#845fac',
    500: '#4c1d88',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d88;
$custom-light: #845fac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d88",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 266.355,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36741,
    "c": 0.16396,
    "h": 297.5
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#4C1D88
secondary
#87BA47
accent
#E8409E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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