#4C1FA1#4C1FA1

#4C1FA1 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.190 H 290.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4C1FA1
RGBrgb(76, 31, 161)
HSLhsl(261, 68%, 38%)
HSVhsv(261, 81%, 63%)
CMYKcmyk(52.8%, 80.7%, 0%, 36.9%)
CIE-LABlab(26.99, 49.97, -61.80)
CIE-LCHlch(26.99, 79.48, 308.96°)
OKLaboklab(39.34% 0.0664 -0.1777)
OKLCHoklch(39.34% 0.19 290.5)
XYZxyz(9.9016, 5.0893, 34.1719)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1FA1 #74A11F
analogous
#1F33A1 #4C1FA1 #8D1FA1
triadic
#4C1FA1 #A14C1F #1FA14C
tetradic
#4C1FA1 #A11F33 #74A11F #1FA18D
square
#4C1FA1 #A11F33 #74A11F #1FA18D
split-complementary
#4C1FA1 #A18D1F #33A11F
monochromatic
#1C0B3A #34156E #4C1FA1 #6429D4 #895BDF

Accessibility & contrast

On white

10.41
#4C1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1FA1
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1FA1#FFFFFF#000000##FFFFFF
##4C1FA11.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#003D9F
Tritanopia (blue-blind)
#2D4560
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c1fa1;
/* rgb */ color: rgb(76, 31, 161);
/* oklch */ color: oklch(39.3% 0.190 290.5);
Tailwind
colors: {
  custom: {
    50: '#8861be',
    500: '#4c1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #4c1fa1;
$custom-light: #8861be;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1fa1",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 260.769,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3934,
    "c": 0.18967,
    "h": 290.5
  },
  "luminance": 0.0509
}

Semantic roles & 50–950 ramp

primary
#4C1FA1
secondary
#9EC458
accent
#EB3DAF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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