#4D2B8B#4D2B8B

#4D2B8B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.151 H 294.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4D2B8B
RGBrgb(77, 43, 139)
HSLhsl(261, 53%, 36%)
HSVhsv(261, 69%, 55%)
CMYKcmyk(44.6%, 69.1%, 0%, 45.5%)
CIE-LABlab(27.21, 38.07, -47.91)
CIE-LCHlch(27.21, 61.19, 308.47°)
OKLaboklab(38.92% 0.0628 -0.137)
OKLCHoklch(38.92% 0.151 294.6)
XYZxyz(8.5834, 5.1694, 24.9666)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2B8B #698B2B
analogous
#2B398B #4D2B8B #7D2B8B
triadic
#4D2B8B #8B4D2B #2B8B4D
tetradic
#4D2B8B #8B2B39 #698B2B #2B8B7D
square
#4D2B8B #8B2B39 #698B2B #2B8B7D
split-complementary
#4D2B8B #8B7D2B #398B2B
monochromatic
#190E2E #331D5C #4D2B8B #6739BA #8862CE

Accessibility & contrast

On white

10.32
#4D2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D2B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2B8B
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2B8B#FFFFFF#000000##FFFFFF
##4D2B8B1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#3C4257
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2b8b;
/* rgb */ color: rgb(77, 43, 139);
/* oklch */ color: oklch(38.9% 0.151 294.6);
Tailwind
colors: {
  custom: {
    50: '#8467ae',
    500: '#4d2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2b8b;
$custom-light: #8467ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2b8b",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 261.25,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38915,
    "c": 0.15066,
    "h": 294.6
  },
  "luminance": 0.0517
}

Semantic roles & 50–950 ramp

primary
#4D2B8B
secondary
#96B55D
accent
#DC4CA9
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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