#4C1FA0#4C1FA0

#4C1FA0 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.189 H 290.7°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4C1FA0
RGBrgb(76, 31, 160)
HSLhsl(261, 68%, 37%)
HSVhsv(261, 81%, 63%)
CMYKcmyk(52.5%, 80.6%, 0%, 37.3%)
CIE-LABlab(26.89, 49.70, -61.35)
CIE-LCHlch(26.89, 78.96, 309.01°)
OKLaboklab(39.24% 0.0668 -0.1763)
OKLCHoklch(39.24% 0.189 290.7)
XYZxyz(9.8138, 5.0541, 33.7093)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1FA0 #73A01F
analogous
#1F33A0 #4C1FA0 #8C1FA0
triadic
#4C1FA0 #A04C1F #1FA04C
tetradic
#4C1FA0 #A01F33 #73A01F #1FA08C
square
#4C1FA0 #A01F33 #73A01F #1FA08C
split-complementary
#4C1FA0 #A08C1F #33A01F
monochromatic
#1B0B39 #34156D #4C1FA0 #6429D3 #895ADF

Accessibility & contrast

On white

10.44
#4C1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1FA0
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1FA0#FFFFFF#000000##FFFFFF
##4C1FA01.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#003D9E
Tritanopia (blue-blind)
#2E4560
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c1fa0;
/* rgb */ color: rgb(76, 31, 160);
/* oklch */ color: oklch(39.2% 0.189 290.7);
Tailwind
colors: {
  custom: {
    50: '#8861bd',
    500: '#4c1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #4c1fa0;
$custom-light: #8861bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1fa0",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 260.93,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39241,
    "c": 0.18856,
    "h": 290.7
  },
  "luminance": 0.05055
}

Semantic roles & 50–950 ramp

primary
#4C1FA0
secondary
#9EC358
accent
#EA3DAE
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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