#4D2A74#4D2A74

#4D2A74 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 36.9% C 0.123 H 302.6°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#4D2A74
RGBrgb(77, 42, 116)
HSLhsl(268, 47%, 31%)
HSVhsv(268, 64%, 45%)
CMYKcmyk(33.6%, 63.8%, 0%, 54.5%)
CIE-LABlab(25.24, 32.21, -36.62)
CIE-LCHlch(25.24, 48.77, 311.33°)
OKLaboklab(36.94% 0.0663 -0.1038)
OKLCHoklch(36.94% 0.123 302.6)
XYZxyz(7.0402, 4.4947, 17.0163)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A74 #51742A
analogous
#2A2C74 #4D2A74 #722A74
triadic
#4D2A74 #744D2A #2A744D
tetradic
#4D2A74 #742A2C #51742A #2A7472
square
#4D2A74 #742A2C #51742A #2A7472
split-complementary
#4D2A74 #74722A #2C742A
monochromatic
#11091A #2F1A47 #4D2A74 #6B3AA1 #8956C2

Accessibility & contrast

On white

11.06
#4D2A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4D2A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A74
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A74#FFFFFF#000000##FFFFFF
##4D2A741.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B76
Deuteranopia (green-blind)
#153C72
Tritanopia (blue-blind)
#45394B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d2a74;
/* rgb */ color: rgb(77, 42, 116);
/* oklch */ color: oklch(36.9% 0.123 302.6);
Tailwind
colors: {
  custom: {
    50: '#82659c',
    500: '#4d2a74',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a74;
$custom-light: #82659c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a74",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 268.378,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36937,
    "c": 0.12313,
    "h": 302.6
  },
  "luminance": 0.04495
}

Semantic roles & 50–950 ramp

primary
#4D2A74
secondary
#7FA654
accent
#D65197
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4D2A74

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

Preview Lab → · Contrast checker → · Palette generator →

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