#4C1F85#4C1F85

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

Color values

HEX#4C1F85
RGBrgb(76, 31, 133)
HSLhsl(266, 62%, 32%)
HSVhsv(266, 77%, 52%)
CMYKcmyk(42.9%, 76.7%, 0%, 47.8%)
CIE-LABlab(24.35, 42.44, -48.83)
CIE-LCHlch(24.35, 64.70, 311.00°)
OKLaboklab(36.7% 0.0747 -0.1396)
OKLCHoklch(36.7% 0.158 298.2)
XYZxyz(7.7030, 4.2098, 22.5925)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F85 #58851F
analogous
#1F2585 #4C1F85 #7F1F85
triadic
#4C1F85 #854C1F #1F854C
tetradic
#4C1F85 #851F25 #58851F #1F857F
square
#4C1F85 #851F25 #58851F #1F857F
split-complementary
#4C1F85 #857F1F #25851F
monochromatic
#130822 #301353 #4C1F85 #682BB7 #874AD5

Accessibility & contrast

On white

11.40
#4C1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1F85
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F85#FFFFFF#000000##FFFFFF
##4C1F851.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#3E3A50
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1f85;
/* rgb */ color: rgb(76, 31, 133);
/* oklch */ color: oklch(36.7% 0.158 298.2);
Tailwind
colors: {
  custom: {
    50: '#8460a9',
    500: '#4c1f85',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f85;
$custom-light: #8460a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f85",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 266.471,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36696,
    "c": 0.15838,
    "h": 298.2
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#4C1F85
secondary
#86B749
accent
#E5439D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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