#4D2A8E#4D2A8E

#4D2A8E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.156 H 294.0°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4D2A8E
RGBrgb(77, 42, 142)
HSLhsl(261, 54%, 36%)
HSVhsv(261, 70%, 56%)
CMYKcmyk(45.8%, 70.4%, 0%, 44.3%)
CIE-LABlab(27.26, 39.47, -49.69)
CIE-LCHlch(27.26, 63.46, 308.46°)
OKLaboklab(39.03% 0.0634 -0.1422)
OKLCHoklch(39.03% 0.156 294)
XYZxyz(8.7697, 5.1865, 26.1250)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A8E #6B8E2A
analogous
#2A398E #4D2A8E #7F2A8E
triadic
#4D2A8E #8E4D2A #2A8E4D
tetradic
#4D2A8E #8E2A39 #6B8E2A #2A8E7F
square
#4D2A8E #8E2A39 #6B8E2A #2A8E7F
split-complementary
#4D2A8E #8E7F2A #398E2A
monochromatic
#1A0E30 #331C5F #4D2A8E #6738BD #8962D1

Accessibility & contrast

On white

10.31
#4D2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4D2A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A8E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A8E#FFFFFF#000000##FFFFFF
##4D2A8E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#3B4358
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2a8e;
/* rgb */ color: rgb(77, 42, 142);
/* oklch */ color: oklch(39.0% 0.156 294.0);
Tailwind
colors: {
  custom: {
    50: '#8566b0',
    500: '#4d2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a8e;
$custom-light: #8566b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a8e",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 261,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39026,
    "c": 0.15568,
    "h": 294
  },
  "luminance": 0.05187
}

Semantic roles & 50–950 ramp

primary
#4D2A8E
secondary
#97B65D
accent
#DE4AAA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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