#4D2987#4D2987

#4D2987 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.148 H 296.2°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4D2987
RGBrgb(77, 41, 135)
HSLhsl(263, 53%, 35%)
HSVhsv(263, 70%, 53%)
CMYKcmyk(43%, 69.6%, 0%, 47.1%)
CIE-LABlab(26.48, 38.04, -46.60)
CIE-LCHlch(26.48, 60.16, 309.22°)
OKLaboklab(38.29% 0.0656 -0.1331)
OKLCHoklch(38.29% 0.148 296.2)
XYZxyz(8.2255, 4.9128, 23.4319)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2987 #638729
analogous
#293487 #4D2987 #7C2987
triadic
#4D2987 #874D29 #29874D
tetradic
#4D2987 #872934 #638729 #29877C
square
#4D2987 #872934 #638729 #29877C
split-complementary
#4D2987 #877C29 #348729
monochromatic
#170C29 #321B58 #4D2987 #6837B6 #885DCE

Accessibility & contrast

On white

10.59
#4D2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4D2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2987
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2987#FFFFFF#000000##FFFFFF
##4D29871.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#3E4054
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2987;
/* rgb */ color: rgb(77, 41, 135);
/* oklch */ color: oklch(38.3% 0.148 296.2);
Tailwind
colors: {
  custom: {
    50: '#8465ab',
    500: '#4d2987',
    950: '#000000',
  },
}
SCSS
$custom: #4d2987;
$custom-light: #8465ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2987",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 262.979,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38291,
    "c": 0.14839,
    "h": 296.2
  },
  "luminance": 0.04913
}

Semantic roles & 50–950 ramp

primary
#4D2987
secondary
#90B359
accent
#DD4BA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2987

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

Preview Lab → · Contrast checker → · Palette generator →

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