#4C1EB4#4C1EB4

#4C1EB4 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.2% C 0.211 H 286.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4C1EB4
RGBrgb(76, 30, 180)
HSLhsl(258, 71%, 41%)
HSVhsv(258, 83%, 71%)
CMYKcmyk(57.8%, 83.3%, 0%, 29.4%)
CIE-LABlab(28.80, 55.49, -70.25)
CIE-LCHlch(28.80, 89.53, 308.31°)
OKLaboklab(41.17% 0.0604 -0.2023)
OKLCHoklch(41.17% 0.211 286.6)
XYZxyz(11.6805, 5.7597, 43.6674)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1EB4 #86B41E
analogous
#1E3BB4 #4C1EB4 #971EB4
triadic
#4C1EB4 #B44C1E #1EB44C
tetradic
#4C1EB4 #B41E3B #86B41E #1EB497
square
#4C1EB4 #B41E3B #86B41E #1EB497
split-complementary
#4C1EB4 #B4971E #3BB41E
monochromatic
#200D4B #361580 #4C1EB4 #6732DD #8E67E6

Accessibility & contrast

On white

9.76
#4C1EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4C1EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1EB4
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1EB4#FFFFFF#000000##FFFFFF
##4C1EB41.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1eb4;
/* rgb */ color: rgb(76, 30, 180);
/* oklch */ color: oklch(41.2% 0.211 286.6);
Tailwind
colors: {
  custom: {
    50: '#8b62cc',
    500: '#4c1eb4',
    950: '#000000',
  },
}
SCSS
$custom: #4c1eb4;
$custom-light: #8b62cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1eb4",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 258.4,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41172,
    "c": 0.21116,
    "h": 286.6
  },
  "luminance": 0.0576
}

Semantic roles & 50–950 ramp

primary
#4C1EB4
secondary
#ABCB63
accent
#EE3AB7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0514
muted
#7E7A82

Preview Lab

Preview with #4C1EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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