#4C1FB4#4C1FB4

#4C1FB4 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.3% C 0.210 H 286.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#4C1FB4
RGBrgb(76, 31, 180)
HSLhsl(258, 71%, 41%)
HSVhsv(258, 83%, 71%)
CMYKcmyk(57.8%, 82.8%, 0%, 29.4%)
CIE-LABlab(28.93, 55.10, -70.03)
CIE-LCHlch(28.93, 89.11, 308.20°)
OKLaboklab(41.26% 0.0599 -0.2017)
OKLCHoklch(41.26% 0.21 286.5)
XYZxyz(11.7062, 5.8111, 43.6760)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1FB4 #87B41F
analogous
#1F3DB4 #4C1FB4 #971FB4
triadic
#4C1FB4 #B44C1F #1FB44C
tetradic
#4C1FB4 #B41F3D #87B41F #1FB497
square
#4C1FB4 #B41F3D #87B41F #1FB497
split-complementary
#4C1FB4 #B4971F #3DB41F
monochromatic
#200D4C #361680 #4C1FB4 #6734DC #8E68E5

Accessibility & contrast

On white

9.71
#4C1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4C1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1FB4
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1FB4#FFFFFF#000000##FFFFFF
##4C1FB41.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#164D6C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c1fb4;
/* rgb */ color: rgb(76, 31, 180);
/* oklch */ color: oklch(41.3% 0.210 286.5);
Tailwind
colors: {
  custom: {
    50: '#8b62cc',
    500: '#4c1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #4c1fb4;
$custom-light: #8b62cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1fb4",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 258.121,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41263,
    "c": 0.21041,
    "h": 286.5
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#4C1FB4
secondary
#ACCB64
accent
#ED3AB7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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