#4C1280#4C1280

#4C1280 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.166 H 301.6°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#4C1280
RGBrgb(76, 18, 128)
HSLhsl(272, 75%, 29%)
HSVhsv(272, 86%, 50%)
CMYKcmyk(40.6%, 85.9%, 0%, 49.8%)
CIE-LABlab(22.04, 46.52, -49.45)
CIE-LCHlch(22.04, 67.89, 313.25°)
OKLaboklab(34.95% 0.087 -0.1414)
OKLCHoklch(34.95% 0.166 301.6)
XYZxyz(7.0921, 3.5276, 20.7251)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1280 #468012
analogous
#151280 #4C1280 #80127D
triadic
#4C1280 #804C12 #12804C
tetradic
#4C1280 #801512 #468012 #127D80
square
#4C1280 #801512 #468012 #127D80
split-complementary
#4C1280 #7D8012 #128015
monochromatic
#10041B #2C0A4A #4C1280 #6C1AB6 #8B2BE1

Accessibility & contrast

On white

12.31
#4C1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1280
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1280#FFFFFF#000000##FFFFFF
##4C12801.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.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: #4c1280;
/* rgb */ color: rgb(76, 18, 128);
/* oklch */ color: oklch(34.9% 0.166 301.6);
Tailwind
colors: {
  custom: {
    50: '#8459a6',
    500: '#4c1280',
    950: '#000000',
  },
}
SCSS
$custom: #4c1280;
$custom-light: #8459a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1280",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 271.636,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34945,
    "c": 0.16598,
    "h": 301.6
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#4C1280
secondary
#73B638
accent
#F2368F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4C1280

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

Preview Lab → · Contrast checker → · Palette generator →

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