#4D2B99#4D2B99

#4D2B99 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.168 H 291.1°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#4D2B99
RGBrgb(77, 43, 153)
HSLhsl(259, 56%, 38%)
HSVhsv(259, 72%, 60%)
CMYKcmyk(49.7%, 71.9%, 0%, 40%)
CIE-LABlab(28.39, 42.09, -54.61)
CIE-LCHlch(28.39, 68.95, 307.62°)
OKLaboklab(40.13% 0.0603 -0.1567)
OKLCHoklch(40.13% 0.168 291.1)
XYZxyz(9.6726, 5.6051, 30.7031)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2B99 #77992B
analogous
#2B4099 #4D2B99 #842B99
triadic
#4D2B99 #994D2B #2B994D
tetradic
#4D2B99 #992B40 #77992B #2B9984
square
#4D2B99 #992B40 #77992B #2B9984
split-complementary
#4D2B99 #99842B #40992B
monochromatic
#1D1039 #351E69 #4D2B99 #663AC8 #8B69D5

Accessibility & contrast

On white

9.90
#4D2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4D2B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2B99
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2B99#FFFFFF#000000##FFFFFF
##4D2B991.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#34475F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2b99;
/* rgb */ color: rgb(77, 43, 153);
/* oklch */ color: oklch(40.1% 0.168 291.1);
Tailwind
colors: {
  custom: {
    50: '#8667b8',
    500: '#4d2b99',
    950: '#000000',
  },
}
SCSS
$custom: #4d2b99;
$custom-light: #8667b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2b99",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 258.545,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40126,
    "c": 0.16785,
    "h": 291.1
  },
  "luminance": 0.05605
}

Semantic roles & 50–950 ramp

primary
#4D2B99
secondary
#A1BC64
accent
#DF48B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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