#4D2A86#4D2A86

#4D2A86 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.146 H 296.3°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4D2A86
RGBrgb(77, 42, 134)
HSLhsl(263, 52%, 35%)
HSVhsv(263, 69%, 53%)
CMYKcmyk(42.5%, 68.7%, 0%, 47.5%)
CIE-LABlab(26.61, 37.20, -45.78)
CIE-LCHlch(26.61, 58.99, 309.10°)
OKLaboklab(38.35% 0.0646 -0.1307)
OKLCHoklch(38.35% 0.146 296.3)
XYZxyz(8.1905, 4.9548, 23.0745)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A86 #63862A
analogous
#2A3586 #4D2A86 #7B2A86
triadic
#4D2A86 #864D2A #2A864D
tetradic
#4D2A86 #862A35 #63862A #2A867B
square
#4D2A86 #862A35 #63862A #2A867B
split-complementary
#4D2A86 #867B2A #35862A
monochromatic
#170D29 #321B57 #4D2A86 #6839B5 #885ECD

Accessibility & contrast

On white

10.55
#4D2A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D2A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A86
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A86#FFFFFF#000000##FFFFFF
##4D2A861.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d2a86;
/* rgb */ color: rgb(77, 42, 134);
/* oklch */ color: oklch(38.4% 0.146 296.3);
Tailwind
colors: {
  custom: {
    50: '#8466aa',
    500: '#4d2a86',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a86;
$custom-light: #8466aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a86",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 262.826,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38353,
    "c": 0.1458,
    "h": 296.3
  },
  "luminance": 0.04955
}

Semantic roles & 50–950 ramp

primary
#4D2A86
secondary
#90B25A
accent
#DC4CA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2A86

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

Preview Lab → · Contrast checker → · Palette generator →

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