#4D2B9E#4D2B9E

#4D2B9E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.174 H 289.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#4D2B9E
RGBrgb(77, 43, 158)
HSLhsl(258, 57%, 39%)
HSVhsv(258, 73%, 62%)
CMYKcmyk(51.3%, 72.8%, 0%, 38%)
CIE-LABlab(28.83, 43.53, -56.94)
CIE-LCHlch(28.83, 71.67, 307.40°)
OKLaboklab(40.58% 0.0592 -0.1635)
OKLCHoklch(40.58% 0.174 289.9)
XYZxyz(10.0942, 5.7737, 32.9237)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2B9E #7C9E2B
analogous
#2B439E #4D2B9E #872B9E
triadic
#4D2B9E #9E4D2B #2B9E4D
tetradic
#4D2B9E #9E2B43 #7C9E2B #2B9E87
square
#4D2B9E #9E2B43 #7C9E2B #2B9E87
split-complementary
#4D2B9E #9E872B #439E2B
monochromatic
#1E113E #361E6E #4D2B9E #663CCA #8C6CD7

Accessibility & contrast

On white

9.75
#4D2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2B9E
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2B9E#FFFFFF#000000##FFFFFF
##4D2B9E1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#314962
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2b9e;
/* rgb */ color: rgb(77, 43, 158);
/* oklch */ color: oklch(40.6% 0.174 289.9);
Tailwind
colors: {
  custom: {
    50: '#8768bc',
    500: '#4d2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2b9e;
$custom-light: #8768bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2b9e",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 257.739,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40575,
    "c": 0.17388,
    "h": 289.9
  },
  "luminance": 0.05774
}

Semantic roles & 50–950 ramp

primary
#4D2B9E
secondary
#A4BE67
accent
#E047B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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