#4C1880#4C1880

#4C1880 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.160 H 300.9°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#4C1880
RGBrgb(76, 24, 128)
HSLhsl(270, 68%, 30%)
HSVhsv(270, 81%, 50%)
CMYKcmyk(40.6%, 81.3%, 0%, 49.8%)
CIE-LABlab(22.82, 44.25, -48.18)
CIE-LCHlch(22.82, 65.42, 312.57°)
OKLaboklab(35.48% 0.0824 -0.1377)
OKLCHoklch(35.48% 0.16 300.9)
XYZxyz(7.2024, 3.7482, 20.7619)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1880 #4C8018
analogous
#181880 #4C1880 #801880
triadic
#4C1880 #804C18 #18804C
tetradic
#4C1880 #801818 #4C8018 #188080
square
#4C1880 #801818 #4C8018 #188080
split-complementary
#4C1880 #808018 #188018
monochromatic
#0F051A #2D0E4C #4C1880 #6B22B4 #8939DA

Accessibility & contrast

On white

12.00
#4C1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4C1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1880
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1880#FFFFFF#000000##FFFFFF
##4C18801.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#40344C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c1880;
/* rgb */ color: rgb(76, 24, 128);
/* oklch */ color: oklch(35.5% 0.160 300.9);
Tailwind
colors: {
  custom: {
    50: '#845ca6',
    500: '#4c1880',
    950: '#000000',
  },
}
SCSS
$custom: #4c1880;
$custom-light: #845ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1880",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 270,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35484,
    "c": 0.16045,
    "h": 300.9
  },
  "luminance": 0.03748
}

Semantic roles & 50–950 ramp

primary
#4C1880
secondary
#7AB440
accent
#EB3D94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1880

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

Preview Lab → · Contrast checker → · Palette generator →

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