#4C1F8A#4C1F8A

#4C1F8A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.164 H 296.6°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4C1F8A
RGBrgb(76, 31, 138)
HSLhsl(265, 63%, 33%)
HSVhsv(265, 78%, 54%)
CMYKcmyk(44.9%, 77.5%, 0%, 45.9%)
CIE-LABlab(24.80, 43.78, -51.23)
CIE-LCHlch(24.80, 67.38, 310.52°)
OKLaboklab(37.15% 0.0734 -0.1467)
OKLCHoklch(37.15% 0.164 296.6)
XYZxyz(8.0567, 4.3513, 24.4552)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F8A #5D8A1F
analogous
#1F278A #4C1F8A #811F8A
triadic
#4C1F8A #8A4C1F #1F8A4C
tetradic
#4C1F8A #8A1F27 #5D8A1F #1F8A81
square
#4C1F8A #8A1F27 #5D8A1F #1F8A81
split-complementary
#4C1F8A #8A811F #278A1F
monochromatic
#150926 #301458 #4C1F8A #682ABC #874CD7

Accessibility & contrast

On white

11.23
#4C1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F8A
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F8A#FFFFFF#000000##FFFFFF
##4C1F8A1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#3B3C53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c1f8a;
/* rgb */ color: rgb(76, 31, 138);
/* oklch */ color: oklch(37.1% 0.164 296.6);
Tailwind
colors: {
  custom: {
    50: '#8560ad',
    500: '#4c1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f8a;
$custom-light: #8560ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f8a",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 265.234,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37148,
    "c": 0.16403,
    "h": 296.6
  },
  "luminance": 0.04351
}

Semantic roles & 50–950 ramp

primary
#4C1F8A
secondary
#8BBA4B
accent
#E641A1
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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