#4C1FA8#4C1FA8

#4C1FA8 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.197 H 288.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4C1FA8
RGBrgb(76, 31, 168)
HSLhsl(260, 69%, 39%)
HSVhsv(260, 82%, 66%)
CMYKcmyk(54.8%, 81.5%, 0%, 34.1%)
CIE-LABlab(27.69, 51.87, -64.88)
CIE-LCHlch(27.69, 83.06, 308.64°)
OKLaboklab(40.04% 0.0641 -0.1867)
OKLCHoklch(40.04% 0.197 288.9)
XYZxyz(10.5363, 5.3431, 37.5143)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1FA8 #7BA81F
analogous
#1F37A8 #4C1FA8 #911FA8
triadic
#4C1FA8 #A84C1F #1FA84C
tetradic
#4C1FA8 #A81F37 #7BA81F #1FA891
square
#4C1FA8 #A81F37 #7BA81F #1FA891
split-complementary
#4C1FA8 #A8911F #37A81F
monochromatic
#1D0C41 #351574 #4C1FA8 #652CD8 #8A60E2

Accessibility & contrast

On white

10.15
#4C1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4C1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1FA8
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1FA8#FFFFFF#000000##FFFFFF
##4C1FA81.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#264865
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c1fa8;
/* rgb */ color: rgb(76, 31, 168);
/* oklch */ color: oklch(40.0% 0.197 288.9);
Tailwind
colors: {
  custom: {
    50: '#8962c3',
    500: '#4c1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #4c1fa8;
$custom-light: #8962c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1fa8",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 259.708,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40038,
    "c": 0.19735,
    "h": 288.9
  },
  "luminance": 0.05344
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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