#4C1381#4C1381

#4C1381 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.166 H 301.1°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#4C1381
RGBrgb(76, 19, 129)
HSLhsl(271, 74%, 29%)
HSVhsv(271, 85%, 51%)
CMYKcmyk(41.1%, 85.3%, 0%, 49.4%)
CIE-LABlab(22.26, 46.41, -49.74)
CIE-LCHlch(22.26, 68.03, 313.02°)
OKLaboklab(35.12% 0.0859 -0.1422)
OKLCHoklch(35.12% 0.166 301.1)
XYZxyz(7.1748, 3.5872, 21.0790)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1381 #488113
analogous
#151381 #4C1381 #81137F
triadic
#4C1381 #814C13 #13814C
tetradic
#4C1381 #811513 #488113 #137F81
square
#4C1381 #811513 #488113 #137F81
split-complementary
#4C1381 #7F8113 #138115
monochromatic
#10041B #2D0B4C #4C1381 #6B1BB6 #8A2EE0

Accessibility & contrast

On white

12.23
#4C1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4C1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1381
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1381#FFFFFF#000000##FFFFFF
##4C13811.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#40334C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1381;
/* rgb */ color: rgb(76, 19, 129);
/* oklch */ color: oklch(35.1% 0.166 301.1);
Tailwind
colors: {
  custom: {
    50: '#845aa7',
    500: '#4c1381',
    950: '#000000',
  },
}
SCSS
$custom: #4c1381;
$custom-light: #845aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1381",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 271.091,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35121,
    "c": 0.16616,
    "h": 301.1
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#4C1381
secondary
#76B63A
accent
#F13791
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4C1381

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

Preview Lab → · Contrast checker → · Palette generator →

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