#4D2587#4D2587

#4D2587 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.154 H 297.1°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#4D2587
RGBrgb(77, 37, 135)
HSLhsl(264, 57%, 34%)
HSVhsv(264, 73%, 53%)
CMYKcmyk(43%, 72.6%, 0%, 47.1%)
CIE-LABlab(25.71, 40.18, -47.86)
CIE-LCHlch(25.71, 62.49, 310.02°)
OKLaboklab(37.74% 0.0699 -0.1368)
OKLCHoklch(37.74% 0.154 297.1)
XYZxyz(8.0942, 4.6500, 23.3881)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2587 #5F8725
analogous
#252E87 #4D2587 #7E2587
triadic
#4D2587 #874D25 #25874D
tetradic
#4D2587 #87252E #5F8725 #25877E
square
#4D2587 #87252E #5F8725 #25877E
split-complementary
#4D2587 #877E25 #2E8725
monochromatic
#160B27 #321857 #4D2587 #6832B7 #8856D1

Accessibility & contrast

On white

10.88
#4D2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4D2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2587
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2587#FFFFFF#000000##FFFFFF
##4D25871.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#3E3D53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d2587;
/* rgb */ color: rgb(77, 37, 135);
/* oklch */ color: oklch(37.7% 0.154 297.1);
Tailwind
colors: {
  custom: {
    50: '#8463ab',
    500: '#4d2587',
    950: '#000000',
  },
}
SCSS
$custom: #4d2587;
$custom-light: #8463ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2587",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 264.49,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37741,
    "c": 0.1536,
    "h": 297.1
  },
  "luminance": 0.0465
}

Semantic roles & 50–950 ramp

primary
#4D2587
secondary
#8DB553
accent
#E048A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4D2587

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

Preview Lab → · Contrast checker → · Palette generator →

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