#4D2386#4D2386

#4D2386 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.155 H 297.7°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4D2386
RGBrgb(77, 35, 134)
HSLhsl(265, 59%, 33%)
HSVhsv(265, 74%, 53%)
CMYKcmyk(42.5%, 73.9%, 0%, 47.5%)
CIE-LABlab(25.26, 40.93, -47.97)
CIE-LCHlch(25.26, 63.06, 310.48°)
OKLaboklab(37.39% 0.0721 -0.1371)
OKLCHoklch(37.39% 0.155 297.7)
XYZxyz(7.9636, 4.5009, 22.9988)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2386 #5C8623
analogous
#232A86 #4D2386 #7E2386
triadic
#4D2386 #864D23 #23864D
tetradic
#4D2386 #86232A #5C8623 #23867E
square
#4D2386 #86232A #5C8623 #23867E
split-complementary
#4D2386 #867E23 #2A8623
monochromatic
#150A25 #311655 #4D2386 #6930B7 #8852D2

Accessibility & contrast

On white

11.05
#4D2386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4D2386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2386
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2386#FFFFFF#000000##FFFFFF
##4D23861.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#3F3C52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d2386;
/* rgb */ color: rgb(77, 35, 134);
/* oklch */ color: oklch(37.4% 0.155 297.7);
Tailwind
colors: {
  custom: {
    50: '#8462aa',
    500: '#4d2386',
    950: '#000000',
  },
}
SCSS
$custom: #4d2386;
$custom-light: #8462aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2386",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 265.455,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37394,
    "c": 0.1549,
    "h": 297.7
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#4D2386
secondary
#8AB54F
accent
#E246A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D2386

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

Preview Lab → · Contrast checker → · Palette generator →

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