#4D2078#4D2078

#4D2078 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.142 H 303.2°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4D2078
RGBrgb(77, 32, 120)
HSLhsl(271, 58%, 30%)
HSVhsv(271, 73%, 47%)
CMYKcmyk(35.8%, 73.3%, 0%, 52.9%)
CIE-LABlab(23.56, 38.72, -41.89)
CIE-LCHlch(23.56, 57.05, 312.75°)
OKLaboklab(35.82% 0.078 -0.1192)
OKLCHoklch(35.82% 0.142 303.2)
XYZxyz(6.9665, 3.9669, 18.1643)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2078 #4B7820
analogous
#212078 #4D2078 #782077
triadic
#4D2078 #784D20 #20784D
tetradic
#4D2078 #782120 #4B7820 #207778
square
#4D2078 #782120 #4B7820 #207778
split-complementary
#4D2078 #777820 #207821
monochromatic
#100618 #2E1348 #4D2078 #6C2DA8 #8B45CD

Accessibility & contrast

On white

11.71
#4D2078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4D2078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2078
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2078#FFFFFF#000000##FFFFFF
##4D20781.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#443549
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d2078;
/* rgb */ color: rgb(77, 32, 120);
/* oklch */ color: oklch(35.8% 0.142 303.2);
Tailwind
colors: {
  custom: {
    50: '#8360a0',
    500: '#4d2078',
    950: '#000000',
  },
}
SCSS
$custom: #4d2078;
$custom-light: #8360a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2078",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 120
  },
  "hsl": {
    "h": 270.682,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35823,
    "c": 0.14248,
    "h": 303.2
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#4D2078
secondary
#79AB48
accent
#E14792
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4D2078

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

Preview Lab → · Contrast checker → · Palette generator →

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