#4D1880#4D1880

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

Color values

HEX#4D1880
RGBrgb(77, 24, 128)
HSLhsl(271, 68%, 30%)
HSVhsv(271, 81%, 50%)
CMYKcmyk(39.8%, 81.3%, 0%, 49.8%)
CIE-LABlab(22.96, 44.42, -47.94)
CIE-LCHlch(22.96, 65.36, 312.82°)
OKLaboklab(35.61% 0.0839 -0.1369)
OKLCHoklch(35.61% 0.161 301.5)
XYZxyz(7.2825, 3.7895, 20.7657)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1880 #4B8018
analogous
#191880 #4D1880 #80187F
triadic
#4D1880 #804D18 #18804D
tetradic
#4D1880 #801918 #4B8018 #187F80
square
#4D1880 #801918 #4B8018 #187F80
split-complementary
#4D1880 #7F8018 #188019
monochromatic
#10051A #2E0E4C #4D1880 #6C22B4 #8B39DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D1880#FFFFFF#000000##FFFFFF
##4D18801.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)
#42344C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1880;
/* rgb */ color: rgb(77, 24, 128);
/* oklch */ color: oklch(35.6% 0.161 301.5);
Tailwind
colors: {
  custom: {
    50: '#845ca6',
    500: '#4d1880',
    950: '#000000',
  },
}
SCSS
$custom: #4d1880;
$custom-light: #845ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1880",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 270.577,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35614,
    "c": 0.16062,
    "h": 301.5
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#4D1880
secondary
#79B440
accent
#EB3D92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1880

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

Preview Lab → · Contrast checker → · Palette generator →

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