#4C1F84#4C1F84

#4C1F84 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.157 H 298.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4C1F84
RGBrgb(76, 31, 132)
HSLhsl(267, 62%, 32%)
HSVhsv(267, 77%, 52%)
CMYKcmyk(42.4%, 76.5%, 0%, 48.2%)
CIE-LABlab(24.27, 42.17, -48.34)
CIE-LCHlch(24.27, 64.16, 311.10°)
OKLaboklab(36.61% 0.075 -0.1382)
OKLCHoklch(36.61% 0.157 298.5)
XYZxyz(7.6343, 4.1823, 22.2304)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F84 #57841F
analogous
#1F2484 #4C1F84 #7F1F84
triadic
#4C1F84 #844C1F #1F844C
tetradic
#4C1F84 #841F24 #57841F #1F847F
square
#4C1F84 #841F24 #57841F #1F847F
split-complementary
#4C1F84 #847F1F #24841F
monochromatic
#130821 #2F1352 #4C1F84 #692BB6 #8749D4

Accessibility & contrast

On white

11.44
#4C1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1F84
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F84#FFFFFF#000000##FFFFFF
##4C1F841.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#3E3950
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1f84;
/* rgb */ color: rgb(76, 31, 132);
/* oklch */ color: oklch(36.6% 0.157 298.5);
Tailwind
colors: {
  custom: {
    50: '#845fa9',
    500: '#4c1f84',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f84;
$custom-light: #845fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f84",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 266.733,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36607,
    "c": 0.15725,
    "h": 298.5
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#4C1F84
secondary
#85B748
accent
#E5439D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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