#4D1980#4D1980

#4D1980 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.160 H 301.4°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#4D1980
RGBrgb(77, 25, 128)
HSLhsl(270, 67%, 30%)
HSVhsv(270, 80%, 50%)
CMYKcmyk(39.8%, 80.5%, 0%, 49.8%)
CIE-LABlab(23.11, 44.01, -47.71)
CIE-LCHlch(23.11, 64.91, 312.69°)
OKLaboklab(35.71% 0.0831 -0.1363)
OKLCHoklch(35.71% 0.16 301.4)
XYZxyz(7.3035, 3.8315, 20.7727)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1980 #4C8019
analogous
#191980 #4D1980 #801980
triadic
#4D1980 #804D19 #19804D
tetradic
#4D1980 #801919 #4C8019 #198080
square
#4D1980 #801919 #4C8019 #198080
split-complementary
#4D1980 #808019 #198019
monochromatic
#0F051A #2E0F4D #4D1980 #6C23B3 #8A3BD9

Accessibility & contrast

On white

11.89
#4D1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4D1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1980
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1980#FFFFFF#000000##FFFFFF
##4D19801.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#42354C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1980;
/* rgb */ color: rgb(77, 25, 128);
/* oklch */ color: oklch(35.7% 0.160 301.4);
Tailwind
colors: {
  custom: {
    50: '#845ca6',
    500: '#4d1980',
    950: '#000000',
  },
}
SCSS
$custom: #4d1980;
$custom-light: #845ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1980",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 270.291,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.35714,
    "c": 0.15959,
    "h": 301.4
  },
  "luminance": 0.03832
}

Semantic roles & 50–950 ramp

primary
#4D1980
secondary
#7AB441
accent
#EA3E93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1980

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

Preview Lab → · Contrast checker → · Palette generator →

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