#4D1E77#4D1E77

#4D1E77 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.144 H 304.0°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#4D1E77
RGBrgb(77, 30, 119)
HSLhsl(272, 60%, 29%)
HSVhsv(272, 75%, 47%)
CMYKcmyk(35.3%, 74.8%, 0%, 53.3%)
CIE-LABlab(23.13, 39.45, -41.95)
CIE-LCHlch(23.13, 57.59, 313.24°)
OKLaboklab(35.49% 0.0804 -0.1194)
OKLCHoklch(35.49% 0.144 304)
XYZxyz(6.8538, 3.8383, 17.8290)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E77 #48771E
analogous
#201E77 #4D1E77 #771E75
triadic
#4D1E77 #774D1E #1E774D
tetradic
#4D1E77 #77201E #48771E #1E7577
square
#4D1E77 #77201E #48771E #1E7577
split-complementary
#4D1E77 #75771E #1E7720
monochromatic
#100618 #2D1246 #4D1E77 #6D2AA8 #8C40CF

Accessibility & contrast

On white

11.88
#4D1E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1E77
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E77#FFFFFF#000000##FFFFFF
##4D1E771.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#003775
Tritanopia (blue-blind)
#453348
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1e77;
/* rgb */ color: rgb(77, 30, 119);
/* oklch */ color: oklch(35.5% 0.144 304.0);
Tailwind
colors: {
  custom: {
    50: '#835e9f',
    500: '#4d1e77',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e77;
$custom-light: #835e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e77",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 271.685,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3549,
    "c": 0.14394,
    "h": 304
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#4D1E77
secondary
#76AB46
accent
#E3458F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D1E77

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

Preview Lab → · Contrast checker → · Palette generator →

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