#4C1F97#4C1F97

#4C1F97 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.179 H 293.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4C1F97
RGBrgb(76, 31, 151)
HSLhsl(263, 66%, 36%)
HSVhsv(263, 79%, 59%)
CMYKcmyk(49.7%, 79.5%, 0%, 40.8%)
CIE-LABlab(26.01, 47.27, -57.29)
CIE-LCHlch(26.01, 74.28, 309.53°)
OKLaboklab(38.37% 0.0696 -0.1645)
OKLCHoklch(38.37% 0.179 293)
XYZxyz(9.0548, 4.7505, 29.7120)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F97 #6A971F
analogous
#1F2E97 #4C1F97 #881F97
triadic
#4C1F97 #974C1F #1F974C
tetradic
#4C1F97 #971F2E #6A971F #1F9788
square
#4C1F97 #971F2E #6A971F #1F9788
split-complementary
#4C1F97 #97881F #2E971F
monochromatic
#190A31 #321564 #4C1F97 #6629CA #8754DC

Accessibility & contrast

On white

10.77
#4C1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4C1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F97
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F97#FFFFFF#000000##FFFFFF
##4C1F971.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#34415B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c1f97;
/* rgb */ color: rgb(76, 31, 151);
/* oklch */ color: oklch(38.4% 0.179 293.0);
Tailwind
colors: {
  custom: {
    50: '#8661b7',
    500: '#4c1f97',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f97;
$custom-light: #8661b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f97",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 262.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38367,
    "c": 0.1786,
    "h": 293
  },
  "luminance": 0.04751
}

Semantic roles & 50–950 ramp

primary
#4C1F97
secondary
#97BF52
accent
#E93FA9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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