#4C1380#4C1380

#4C1380 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.165 H 301.5°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#4C1380
RGBrgb(76, 19, 128)
HSLhsl(271, 74%, 29%)
HSVhsv(271, 85%, 50%)
CMYKcmyk(40.6%, 85.2%, 0%, 49.8%)
CIE-LABlab(22.16, 46.17, -49.26)
CIE-LCHlch(22.16, 67.51, 313.14°)
OKLaboklab(35.03% 0.0863 -0.1408)
OKLCHoklch(35.03% 0.165 301.5)
XYZxyz(7.1087, 3.5607, 20.7307)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1380 #478013
analogous
#151380 #4C1380 #80137E
triadic
#4C1380 #804C13 #13804C
tetradic
#4C1380 #801513 #478013 #137E80
square
#4C1380 #801513 #478013 #137E80
split-complementary
#4C1380 #7E8013 #138015
monochromatic
#10041B #2C0B4B #4C1380 #6C1BB5 #8B2DE0

Accessibility & contrast

On white

12.26
#4C1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4C1380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1380
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1380#FFFFFF#000000##FFFFFF
##4C13801.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#40324B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1380;
/* rgb */ color: rgb(76, 19, 128);
/* oklch */ color: oklch(35.0% 0.165 301.5);
Tailwind
colors: {
  custom: {
    50: '#845aa6',
    500: '#4c1380',
    950: '#000000',
  },
}
SCSS
$custom: #4c1380;
$custom-light: #845aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1380",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 271.376,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35027,
    "c": 0.16514,
    "h": 301.5
  },
  "luminance": 0.03561
}

Semantic roles & 50–950 ramp

primary
#4C1380
secondary
#75B539
accent
#F13790
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4C1380

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

Preview Lab → · Contrast checker → · Palette generator →

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