#4D2EA4#4D2EA4

#4D2EA4 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.178 H 288.1°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4D2EA4
RGBrgb(77, 46, 164)
HSLhsl(256, 56%, 41%)
HSVhsv(256, 72%, 64%)
CMYKcmyk(53%, 72%, 0%, 35.7%)
CIE-LABlab(29.94, 43.68, -58.77)
CIE-LCHlch(29.94, 73.22, 306.62°)
OKLaboklab(41.53% 0.0553 -0.1689)
OKLCHoklch(41.53% 0.178 288.1)
XYZxyz(10.7364, 6.2116, 35.7480)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EA4 #85A42E
analogous
#2E4AA4 #4D2EA4 #882EA4
triadic
#4D2EA4 #A44D2E #2EA44D
tetradic
#4D2EA4 #A42E4A #85A42E #2EA488
square
#4D2EA4 #A42E4A #85A42E #2EA488
split-complementary
#4D2EA4 #A4882E #4AA42E
monochromatic
#201344 #372174 #4D2EA4 #6845CB #8F74D8

Accessibility & contrast

On white

9.36
#4D2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4D2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EA4
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EA4#FFFFFF#000000##FFFFFF
##4D2EA41.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#2C4D66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2ea4;
/* rgb */ color: rgb(77, 46, 164);
/* oklch */ color: oklch(41.5% 0.178 288.1);
Tailwind
colors: {
  custom: {
    50: '#886ac0',
    500: '#4d2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ea4;
$custom-light: #886ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ea4",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 255.763,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41525,
    "c": 0.17768,
    "h": 288.1
  },
  "luminance": 0.06212
}

Semantic roles & 50–950 ramp

primary
#4D2EA4
secondary
#AAC06E
accent
#DF48B8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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