#4D1E87#4D1E87

#4D1E87 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.162 H 298.3°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4D1E87
RGBrgb(77, 30, 135)
HSLhsl(267, 64%, 32%)
HSVhsv(267, 78%, 53%)
CMYKcmyk(43%, 77.8%, 0%, 47.1%)
CIE-LABlab(24.50, 43.61, -49.84)
CIE-LCHlch(24.50, 66.23, 311.19°)
OKLaboklab(36.88% 0.0767 -0.1426)
OKLCHoklch(36.88% 0.162 298.3)
XYZxyz(7.8969, 4.2555, 23.3223)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E87 #58871E
analogous
#1E2487 #4D1E87 #811E87
triadic
#4D1E87 #874D1E #1E874D
tetradic
#4D1E87 #871E24 #58871E #1E8781
square
#4D1E87 #871E24 #58871E #1E8781
split-complementary
#4D1E87 #87811E #24871E
monochromatic
#140823 #301355 #4D1E87 #6A29B9 #8849D7

Accessibility & contrast

On white

11.34
#4D1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4D1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E87
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E87#FFFFFF#000000##FFFFFF
##4D1E871.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#3E3A51
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1e87;
/* rgb */ color: rgb(77, 30, 135);
/* oklch */ color: oklch(36.9% 0.162 298.3);
Tailwind
colors: {
  custom: {
    50: '#855fab',
    500: '#4d1e87',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e87;
$custom-light: #855fab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e87",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 266.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36882,
    "c": 0.16188,
    "h": 298.3
  },
  "luminance": 0.04256
}

Semantic roles & 50–950 ramp

primary
#4D1E87
secondary
#86B948
accent
#E7419D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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