#4D2B8D#4D2B8D

#4D2B8D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.153 H 294.1°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4D2B8D
RGBrgb(77, 43, 141)
HSLhsl(261, 53%, 36%)
HSVhsv(261, 70%, 55%)
CMYKcmyk(45.4%, 69.5%, 0%, 44.7%)
CIE-LABlab(27.38, 38.64, -48.88)
CIE-LCHlch(27.38, 62.31, 308.32°)
OKLaboklab(39.08% 0.0625 -0.1398)
OKLCHoklch(39.08% 0.153 294.1)
XYZxyz(8.7309, 5.2284, 25.7433)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2B8D #6B8D2B
analogous
#2B3A8D #4D2B8D #7E2B8D
triadic
#4D2B8D #8D4D2B #2B8D4D
tetradic
#4D2B8D #8D2B3A #6B8D2B #2B8D7E
square
#4D2B8D #8D2B3A #6B8D2B #2B8D7E
split-complementary
#4D2B8D #8D7E2B #3A8D2B
monochromatic
#1A0E2F #331D5E #4D2B8D #6739BC #8963CF

Accessibility & contrast

On white

10.26
#4D2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4D2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2B8D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2B8D#FFFFFF#000000##FFFFFF
##4D2B8D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#3B4358
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d2b8d;
/* rgb */ color: rgb(77, 43, 141);
/* oklch */ color: oklch(39.1% 0.153 294.1);
Tailwind
colors: {
  custom: {
    50: '#8567af',
    500: '#4d2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #4d2b8d;
$custom-light: #8567af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2b8d",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 260.816,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39083,
    "c": 0.15315,
    "h": 294.1
  },
  "luminance": 0.05229
}

Semantic roles & 50–950 ramp

primary
#4D2B8D
secondary
#97B65E
accent
#DD4BAA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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