#4D1780#4D1780

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

Color values

HEX#4D1780
RGBrgb(77, 23, 128)
HSLhsl(271, 70%, 30%)
HSVhsv(271, 82%, 50%)
CMYKcmyk(39.8%, 82%, 0%, 49.8%)
CIE-LABlab(22.82, 44.83, -48.17)
CIE-LCHlch(22.82, 65.80, 312.94°)
OKLaboklab(35.52% 0.0848 -0.1376)
OKLCHoklch(35.52% 0.162 301.6)
XYZxyz(7.2623, 3.7490, 20.7589)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1780 #4A8017
analogous
#191780 #4D1780 #80177F
triadic
#4D1780 #804D17 #17804D
tetradic
#4D1780 #801917 #4A8017 #177F80
square
#4D1780 #801917 #4A8017 #177F80
split-complementary
#4D1780 #7F8017 #178019
monochromatic
#10051A #2E0E4C #4D1780 #6C20B4 #8B36DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D1780#FFFFFF#000000##FFFFFF
##4D17801.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)
#42344C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1780;
/* rgb */ color: rgb(77, 23, 128);
/* oklch */ color: oklch(35.5% 0.162 301.6);
Tailwind
colors: {
  custom: {
    50: '#845ba6',
    500: '#4d1780',
    950: '#000000',
  },
}
SCSS
$custom: #4d1780;
$custom-light: #845ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1780",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 270.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35517,
    "c": 0.16162,
    "h": 301.6
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#4D1780
secondary
#78B43E
accent
#EC3B91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1780

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

Preview Lab → · Contrast checker → · Palette generator →

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