#4C1980#4C1980

#4C1980 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.159 H 300.8°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#4C1980
RGBrgb(76, 25, 128)
HSLhsl(270, 67%, 30%)
HSVhsv(270, 80%, 50%)
CMYKcmyk(40.6%, 80.5%, 0%, 49.8%)
CIE-LABlab(22.97, 43.84, -47.95)
CIE-LCHlch(22.97, 64.96, 312.44°)
OKLaboklab(35.59% 0.0815 -0.137)
OKLCHoklch(35.59% 0.159 300.8)
XYZxyz(7.2234, 3.7902, 20.7689)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1980 #4D8019
analogous
#191980 #4C1980 #801980
triadic
#4C1980 #804C19 #19804C
tetradic
#4C1980 #801919 #4D8019 #198080
square
#4C1980 #801919 #4D8019 #198080
split-complementary
#4C1980 #808019 #198019
monochromatic
#0F051A #2E0F4D #4C1980 #6A23B3 #893BD9

Accessibility & contrast

On white

11.95
#4C1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4C1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1980
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1980#FFFFFF#000000##FFFFFF
##4C19801.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1980;
/* rgb */ color: rgb(76, 25, 128);
/* oklch */ color: oklch(35.6% 0.159 300.8);
Tailwind
colors: {
  custom: {
    50: '#845ca6',
    500: '#4c1980',
    950: '#000000',
  },
}
SCSS
$custom: #4c1980;
$custom-light: #845ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1980",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 269.709,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.35585,
    "c": 0.15942,
    "h": 300.8
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#4C1980
secondary
#7BB441
accent
#EA3E95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1980

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

Preview Lab → · Contrast checker → · Palette generator →

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