#4D2A8A#4D2A8A

#4D2A8A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.151 H 295.1°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#4D2A8A
RGBrgb(77, 42, 138)
HSLhsl(262, 53%, 35%)
HSVhsv(262, 70%, 54%)
CMYKcmyk(44.2%, 69.6%, 0%, 45.9%)
CIE-LABlab(26.93, 38.34, -47.75)
CIE-LCHlch(26.93, 61.23, 308.76°)
OKLaboklab(38.69% 0.064 -0.1365)
OKLCHoklch(38.69% 0.151 295.1)
XYZxyz(8.4748, 5.0685, 24.5716)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A8A #678A2A
analogous
#2A378A #4D2A8A #7D2A8A
triadic
#4D2A8A #8A4D2A #2A8A4D
tetradic
#4D2A8A #8A2A37 #678A2A #2A8A7D
square
#4D2A8A #8A2A37 #678A2A #2A8A7D
split-complementary
#4D2A8A #8A7D2A #378A2A
monochromatic
#190D2C #331C5B #4D2A8A #6738B9 #8860CF

Accessibility & contrast

On white

10.43
#4D2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4D2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A8A
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A8A#FFFFFF#000000##FFFFFF
##4D2A8A1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#3D4156
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2a8a;
/* rgb */ color: rgb(77, 42, 138);
/* oklch */ color: oklch(38.7% 0.151 295.1);
Tailwind
colors: {
  custom: {
    50: '#8466ad',
    500: '#4d2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a8a;
$custom-light: #8466ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a8a",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 261.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38686,
    "c": 0.15076,
    "h": 295.1
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

primary
#4D2A8A
secondary
#94B45B
accent
#DD4BA8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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