#4D2387#4D2387

#4D2387 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.156 H 297.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#4D2387
RGBrgb(77, 35, 135)
HSLhsl(265, 59%, 33%)
HSVhsv(265, 74%, 53%)
CMYKcmyk(43%, 74.1%, 0%, 47.1%)
CIE-LABlab(25.35, 41.20, -48.45)
CIE-LCHlch(25.35, 63.60, 310.38°)
OKLaboklab(37.48% 0.0719 -0.1385)
OKLCHoklch(37.48% 0.156 297.4)
XYZxyz(8.0336, 4.5290, 23.3679)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2387 #5D8723
analogous
#232B87 #4D2387 #7F2387
triadic
#4D2387 #874D23 #23874D
tetradic
#4D2387 #87232B #5D8723 #23877F
square
#4D2387 #87232B #5D8723 #23877F
split-complementary
#4D2387 #877F23 #2B8723
monochromatic
#160A26 #311656 #4D2387 #6930B8 #8852D2

Accessibility & contrast

On white

11.02
#4D2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2387
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2387#FFFFFF#000000##FFFFFF
##4D23871.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#3E3C53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d2387;
/* rgb */ color: rgb(77, 35, 135);
/* oklch */ color: oklch(37.5% 0.156 297.4);
Tailwind
colors: {
  custom: {
    50: '#8462ab',
    500: '#4d2387',
    950: '#000000',
  },
}
SCSS
$custom: #4d2387;
$custom-light: #8462ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2387",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 265.2,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37482,
    "c": 0.15607,
    "h": 297.4
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D2387

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

Preview Lab → · Contrast checker → · Palette generator →

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