#4D2EC7#4D2EC7

#4D2EC7 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.219 H 282.3°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#4D2EC7
RGBrgb(77, 46, 199)
HSLhsl(252, 62%, 48%)
HSVhsv(252, 77%, 78%)
CMYKcmyk(61.3%, 76.9%, 0%, 22%)
CIE-LABlab(33.25, 53.90, -74.12)
CIE-LCHlch(33.25, 91.64, 306.03°)
OKLaboklab(44.86% 0.0467 -0.2138)
OKLCHoklch(44.86% 0.219 282.3)
XYZxyz(14.3431, 7.6543, 54.7434)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EC7 #A8C72E
analogous
#2E5BC7 #4D2EC7 #992EC7
triadic
#4D2EC7 #C74D2E #2EC74D
tetradic
#4D2EC7 #C72E5B #A8C72E #2EC799
square
#4D2EC7 #C72E5B #A8C72E #2EC799
split-complementary
#4D2EC7 #C7992E #5BC72E
monochromatic
#271764 #3A2395 #4D2EC7 #7359D9 #9D8BE4

Accessibility & contrast

On white

8.30
#4D2EC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4D2EC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EC7
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EC7#FFFFFF#000000##FFFFFF
##4D2EC71.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CB
Deuteranopia (green-blind)
#0049C4
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4d2ec7;
/* rgb */ color: rgb(77, 46, 199);
/* oklch */ color: oklch(44.9% 0.219 282.3);
Tailwind
colors: {
  custom: {
    50: '#8e6bd9',
    500: '#4d2ec7',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ec7;
$custom-light: #8e6bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ec7",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 199
  },
  "hsl": {
    "h": 252.157,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44863,
    "c": 0.21881,
    "h": 282.3
  },
  "luminance": 0.07655
}

Semantic roles & 50–950 ramp

primary
#4D2EC7
secondary
#BFCE83
accent
#E642C4
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D2EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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