#4C1F86#4C1F86

#4C1F86 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.160 H 297.8°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4C1F86
RGBrgb(76, 31, 134)
HSLhsl(266, 62%, 32%)
HSVhsv(266, 77%, 53%)
CMYKcmyk(43.3%, 76.9%, 0%, 47.5%)
CIE-LABlab(24.44, 42.71, -49.31)
CIE-LCHlch(24.44, 65.23, 310.89°)
OKLaboklab(36.79% 0.0745 -0.1411)
OKLCHoklch(36.79% 0.16 297.8)
XYZxyz(7.7724, 4.2376, 22.9581)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F86 #59861F
analogous
#1F2586 #4C1F86 #801F86
triadic
#4C1F86 #864C1F #1F864C
tetradic
#4C1F86 #861F25 #59861F #1F8680
square
#4C1F86 #861F25 #59861F #1F8680
split-complementary
#4C1F86 #86801F #25861F
monochromatic
#140823 #301454 #4C1F86 #682AB8 #874AD5

Accessibility & contrast

On white

11.37
#4C1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1F86
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F86#FFFFFF#000000##FFFFFF
##4C1F861.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#3D3A51
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1f86;
/* rgb */ color: rgb(76, 31, 134);
/* oklch */ color: oklch(36.8% 0.160 297.8);
Tailwind
colors: {
  custom: {
    50: '#8460aa',
    500: '#4c1f86',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f86;
$custom-light: #8460aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f86",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 266.214,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36786,
    "c": 0.15952,
    "h": 297.8
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#4C1F86
secondary
#87B849
accent
#E5429E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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