#4D2178#4D2178

#4D2178 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.141 H 303.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4D2178
RGBrgb(77, 33, 120)
HSLhsl(270, 57%, 30%)
HSVhsv(270, 73%, 47%)
CMYKcmyk(35.8%, 72.5%, 0%, 52.9%)
CIE-LABlab(23.74, 38.22, -41.60)
CIE-LCHlch(23.74, 56.49, 312.58°)
OKLaboklab(35.95% 0.0769 -0.1184)
OKLCHoklch(35.95% 0.141 303)
XYZxyz(6.9938, 4.0216, 18.1734)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2178 #4C7821
analogous
#222178 #4D2178 #782177
triadic
#4D2178 #784D21 #21784D
tetradic
#4D2178 #782221 #4C7821 #217778
square
#4D2178 #782221 #4C7821 #217778
split-complementary
#4D2178 #777821 #217822
monochromatic
#0F0718 #2E1448 #4D2178 #6C2EA8 #8A47CC

Accessibility & contrast

On white

11.64
#4D2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2178
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2178#FFFFFF#000000##FFFFFF
##4D21781.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#44354A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d2178;
/* rgb */ color: rgb(77, 33, 120);
/* oklch */ color: oklch(36.0% 0.141 303.0);
Tailwind
colors: {
  custom: {
    50: '#8360a0',
    500: '#4d2178',
    950: '#000000',
  },
}
SCSS
$custom: #4d2178;
$custom-light: #8360a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2178",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 270.345,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.35952,
    "c": 0.14116,
    "h": 303
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

primary
#4D2178
secondary
#7AAB4A
accent
#E04893
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4D2178

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

Preview Lab → · Contrast checker → · Palette generator →

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