#4D2087#4D2087

#4D2087 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.160 H 298.0°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#4D2087
RGBrgb(77, 32, 135)
HSLhsl(266, 62%, 33%)
HSVhsv(266, 76%, 53%)
CMYKcmyk(43%, 76.3%, 0%, 47.1%)
CIE-LABlab(24.83, 42.68, -49.30)
CIE-LCHlch(24.83, 65.21, 310.88°)
OKLaboklab(37.11% 0.0748 -0.141)
OKLCHoklch(37.11% 0.16 298)
XYZxyz(7.9491, 4.3599, 23.3397)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2087 #5A8720
analogous
#202687 #4D2087 #812087
triadic
#4D2087 #874D20 #20874D
tetradic
#4D2087 #872026 #5A8720 #208781
square
#4D2087 #872026 #5A8720 #208781
split-complementary
#4D2087 #878120 #268720
monochromatic
#150924 #311456 #4D2087 #692CB8 #884DD5

Accessibility & contrast

On white

11.22
#4D2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4D2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2087
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2087#FFFFFF#000000##FFFFFF
##4D20871.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#3E3B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2087;
/* rgb */ color: rgb(77, 32, 135);
/* oklch */ color: oklch(37.1% 0.160 298.0);
Tailwind
colors: {
  custom: {
    50: '#8560ab',
    500: '#4d2087',
    950: '#000000',
  },
}
SCSS
$custom: #4d2087;
$custom-light: #8560ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2087",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 266.214,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37114,
    "c": 0.15963,
    "h": 298
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#4D2087
secondary
#88B84B
accent
#E5439E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D2087

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

Preview Lab → · Contrast checker → · Palette generator →

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