#4D1E88#4D1E88

#4D1E88 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.163 H 298.0°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#4D1E88
RGBrgb(77, 30, 136)
HSLhsl(267, 64%, 33%)
HSVhsv(267, 78%, 53%)
CMYKcmyk(43.4%, 77.9%, 0%, 46.7%)
CIE-LABlab(24.59, 43.88, -50.32)
CIE-LCHlch(24.59, 66.76, 311.09°)
OKLaboklab(36.97% 0.0764 -0.144)
OKLCHoklch(36.97% 0.163 298)
XYZxyz(7.9676, 4.2838, 23.6948)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E88 #59881E
analogous
#1E2488 #4D1E88 #821E88
triadic
#4D1E88 #884D1E #1E884D
tetradic
#4D1E88 #881E24 #59881E #1E8882
square
#4D1E88 #881E24 #59881E #1E8882
split-complementary
#4D1E88 #88821E #24881E
monochromatic
#140824 #311356 #4D1E88 #6929BA #8849D7

Accessibility & contrast

On white

11.31
#4D1E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4D1E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E88
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E88#FFFFFF#000000##FFFFFF
##4D1E881.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#3E3A52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1e88;
/* rgb */ color: rgb(77, 30, 136);
/* oklch */ color: oklch(37.0% 0.163 298.0);
Tailwind
colors: {
  custom: {
    50: '#855fac',
    500: '#4d1e88',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e88;
$custom-light: #855fac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e88",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 266.604,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36973,
    "c": 0.163,
    "h": 298
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#4D1E88
secondary
#87B949
accent
#E7419D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1E88

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

Preview Lab → · Contrast checker → · Palette generator →

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