#4D2A76#4D2A76

#4D2A76 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.126 H 301.8°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4D2A76
RGBrgb(77, 42, 118)
HSLhsl(268, 48%, 31%)
HSVhsv(268, 64%, 46%)
CMYKcmyk(34.7%, 64.4%, 0%, 53.7%)
CIE-LABlab(25.39, 32.75, -37.66)
CIE-LCHlch(25.39, 49.91, 311.01°)
OKLaboklab(37.09% 0.0662 -0.1068)
OKLCHoklch(37.09% 0.126 301.8)
XYZxyz(7.1578, 4.5417, 17.6356)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A76 #53762A
analogous
#2A2D76 #4D2A76 #732A76
triadic
#4D2A76 #764D2A #2A764D
tetradic
#4D2A76 #762A2D #53762A #2A7673
square
#4D2A76 #762A2D #53762A #2A7673
split-complementary
#4D2A76 #76732A #2D762A
monochromatic
#120A1C #301A49 #4D2A76 #6A3AA3 #8957C3

Accessibility & contrast

On white

11.00
#4D2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D2A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A76
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A76#FFFFFF#000000##FFFFFF
##4D2A761.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#123C74
Tritanopia (blue-blind)
#453A4C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d2a76;
/* rgb */ color: rgb(77, 42, 118);
/* oklch */ color: oklch(37.1% 0.126 301.8);
Tailwind
colors: {
  custom: {
    50: '#82659e',
    500: '#4d2a76',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a76;
$custom-light: #82659e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a76",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 267.632,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37087,
    "c": 0.12567,
    "h": 301.8
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#4D2A76
secondary
#81A854
accent
#D75199
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4D2A76

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

Preview Lab → · Contrast checker → · Palette generator →

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