#4C1780#4C1780

#4C1780 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.161 H 301.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#4C1780
RGBrgb(76, 23, 128)
HSLhsl(270, 70%, 30%)
HSVhsv(270, 82%, 50%)
CMYKcmyk(40.6%, 82%, 0%, 49.8%)
CIE-LABlab(22.68, 44.66, -48.41)
CIE-LCHlch(22.68, 65.86, 312.69°)
OKLaboklab(35.39% 0.0832 -0.1383)
OKLCHoklch(35.39% 0.161 301)
XYZxyz(7.1822, 3.7078, 20.7552)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1780 #4B8017
analogous
#181780 #4C1780 #80177F
triadic
#4C1780 #804C17 #17804C
tetradic
#4C1780 #801817 #4B8017 #177F80
square
#4C1780 #801817 #4B8017 #177F80
split-complementary
#4C1780 #7F8017 #178018
monochromatic
#0F051A #2D0E4C #4C1780 #6B20B4 #8936DB

Accessibility & contrast

On white

12.06
#4C1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4C1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1780
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1780#FFFFFF#000000##FFFFFF
##4C17801.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1780;
/* rgb */ color: rgb(76, 23, 128);
/* oklch */ color: oklch(35.4% 0.161 301.0);
Tailwind
colors: {
  custom: {
    50: '#845ba6',
    500: '#4c1780',
    950: '#000000',
  },
}
SCSS
$custom: #4c1780;
$custom-light: #845ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1780",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 270.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35386,
    "c": 0.16144,
    "h": 301
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#4C1780
secondary
#79B43E
accent
#EC3B93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1780

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

Preview Lab → · Contrast checker → · Palette generator →

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