#4C1FA7#4C1FA7

#4C1FA7 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.196 H 289.2°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#4C1FA7
RGBrgb(76, 31, 167)
HSLhsl(260, 69%, 39%)
HSVhsv(260, 81%, 65%)
CMYKcmyk(54.5%, 81.4%, 0%, 34.5%)
CIE-LABlab(27.59, 51.60, -64.44)
CIE-LCHlch(27.59, 82.55, 308.68°)
OKLaboklab(39.94% 0.0644 -0.1854)
OKLCHoklch(39.94% 0.196 289.2)
XYZxyz(10.4435, 5.3060, 37.0256)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1FA7 #7AA71F
analogous
#1F36A7 #4C1FA7 #901FA7
triadic
#4C1FA7 #A74C1F #1FA74C
tetradic
#4C1FA7 #A71F36 #7AA71F #1FA790
square
#4C1FA7 #A71F36 #7AA71F #1FA790
split-complementary
#4C1FA7 #A7901F #36A71F
monochromatic
#1D0C40 #351573 #4C1FA7 #642BD8 #8A5FE1

Accessibility & contrast

On white

10.19
#4C1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4C1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1FA7
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1FA7#FFFFFF#000000##FFFFFF
##4C1FA71.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#274864
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c1fa7;
/* rgb */ color: rgb(76, 31, 167);
/* oklch */ color: oklch(39.9% 0.196 289.2);
Tailwind
colors: {
  custom: {
    50: '#8962c2',
    500: '#4c1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #4c1fa7;
$custom-light: #8962c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1fa7",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 259.853,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39938,
    "c": 0.19626,
    "h": 289.2
  },
  "luminance": 0.05306
}

Semantic roles & 50–950 ramp

primary
#4C1FA7
secondary
#A3C65C
accent
#EC3CB2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4C1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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