#4D2EA7#4D2EA7

#4D2EA7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.181 H 287.5°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4D2EA7
RGBrgb(77, 46, 167)
HSLhsl(255, 57%, 42%)
HSVhsv(255, 72%, 65%)
CMYKcmyk(53.9%, 72.5%, 0%, 34.5%)
CIE-LABlab(30.21, 44.56, -60.14)
CIE-LCHlch(30.21, 74.85, 306.54°)
OKLaboklab(41.8% 0.0546 -0.1729)
OKLCHoklch(41.8% 0.181 287.5)
XYZxyz(11.0106, 6.3212, 37.1917)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EA7 #88A72E
analogous
#2E4CA7 #4D2EA7 #8A2EA7
triadic
#4D2EA7 #A74D2E #2EA74D
tetradic
#4D2EA7 #A72E4C #88A72E #2EA78A
square
#4D2EA7 #A72E4C #88A72E #2EA78A
split-complementary
#4D2EA7 #A78A2E #4CA72E
monochromatic
#211447 #372177 #4D2EA7 #6846CC #9076D9

Accessibility & contrast

On white

9.27
#4D2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4D2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EA7
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EA7#FFFFFF#000000##FFFFFF
##4D2EA71.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#294E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2ea7;
/* rgb */ color: rgb(77, 46, 167);
/* oklch */ color: oklch(41.8% 0.181 287.5);
Tailwind
colors: {
  custom: {
    50: '#886ac2',
    500: '#4d2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ea7;
$custom-light: #886ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ea7",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 255.372,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41799,
    "c": 0.1813,
    "h": 287.5
  },
  "luminance": 0.06322
}

Semantic roles & 50–950 ramp

primary
#4D2EA7
secondary
#ACC170
accent
#E048B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4D2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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