#4C1F87#4C1F87

#4C1F87 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.161 H 297.5°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#4C1F87
RGBrgb(76, 31, 135)
HSLhsl(266, 63%, 33%)
HSVhsv(266, 77%, 53%)
CMYKcmyk(43.7%, 77%, 0%, 47.1%)
CIE-LABlab(24.53, 42.97, -49.79)
CIE-LCHlch(24.53, 65.77, 310.80°)
OKLaboklab(36.88% 0.0742 -0.1425)
OKLCHoklch(36.88% 0.161 297.5)
XYZxyz(7.8425, 4.2656, 23.3271)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F87 #5A871F
analogous
#1F2687 #4C1F87 #801F87
triadic
#4C1F87 #874C1F #1F874C
tetradic
#4C1F87 #871F26 #5A871F #1F8780
square
#4C1F87 #871F26 #5A871F #1F8780
split-complementary
#4C1F87 #87801F #26871F
monochromatic
#140823 #301455 #4C1F87 #682AB9 #874BD6

Accessibility & contrast

On white

11.33
#4C1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1F87
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F87#FFFFFF#000000##FFFFFF
##4C1F871.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#3D3A52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1f87;
/* rgb */ color: rgb(76, 31, 135);
/* oklch */ color: oklch(36.9% 0.161 297.5);
Tailwind
colors: {
  custom: {
    50: '#8460ab',
    500: '#4c1f87',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f87;
$custom-light: #8460ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f87",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 265.962,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36876,
    "c": 0.16064,
    "h": 297.5
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#4C1F87
secondary
#88B84A
accent
#E6429F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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