#4D2B9D#4D2B9D

#4D2B9D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.173 H 290.1°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#4D2B9D
RGBrgb(77, 43, 157)
HSLhsl(258, 57%, 39%)
HSVhsv(258, 73%, 62%)
CMYKcmyk(51%, 72.6%, 0%, 38.4%)
CIE-LABlab(28.75, 43.24, -56.48)
CIE-LCHlch(28.75, 71.13, 307.44°)
OKLaboklab(40.49% 0.0595 -0.1621)
OKLCHoklch(40.49% 0.173 290.1)
XYZxyz(10.0085, 5.7394, 32.4722)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2B9D #7B9D2B
analogous
#2B429D #4D2B9D #862B9D
triadic
#4D2B9D #9D4D2B #2B9D4D
tetradic
#4D2B9D #9D2B42 #7B9D2B #2B9D86
square
#4D2B9D #9D2B42 #7B9D2B #2B9D86
split-complementary
#4D2B9D #9D862B #429D2B
monochromatic
#1E113D #351E6D #4D2B9D #663CCA #8C6CD7

Accessibility & contrast

On white

9.78
#4D2B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D2B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2B9D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2B9D#FFFFFF#000000##FFFFFF
##4D2B9D1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#314961
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2b9d;
/* rgb */ color: rgb(77, 43, 157);
/* oklch */ color: oklch(40.5% 0.173 290.1);
Tailwind
colors: {
  custom: {
    50: '#8767bb',
    500: '#4d2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #4d2b9d;
$custom-light: #8767bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2b9d",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 257.895,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40485,
    "c": 0.17268,
    "h": 290.1
  },
  "luminance": 0.0574
}

Semantic roles & 50–950 ramp

primary
#4D2B9D
secondary
#A3BD66
accent
#E048B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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