#4D2EA6#4D2EA6

#4D2EA6 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.180 H 287.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4D2EA6
RGBrgb(77, 46, 166)
HSLhsl(256, 57%, 42%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(53.6%, 72.3%, 0%, 34.9%)
CIE-LABlab(30.12, 44.27, -59.68)
CIE-LCHlch(30.12, 74.31, 306.57°)
OKLaboklab(41.71% 0.0549 -0.1715)
OKLCHoklch(41.71% 0.18 287.7)
XYZxyz(10.9185, 6.2844, 36.7067)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EA6 #87A62E
analogous
#2E4BA6 #4D2EA6 #892EA6
triadic
#4D2EA6 #A64D2E #2EA64D
tetradic
#4D2EA6 #A62E4B #87A62E #2EA689
square
#4D2EA6 #A62E4B #87A62E #2EA689
split-complementary
#4D2EA6 #A6892E #4BA62E
monochromatic
#211346 #372176 #4D2EA6 #6846CC #8F76D9

Accessibility & contrast

On white

9.30
#4D2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2EA6
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EA6#FFFFFF#000000##FFFFFF
##4D2EA61.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#2A4E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2ea6;
/* rgb */ color: rgb(77, 46, 166);
/* oklch */ color: oklch(41.7% 0.180 287.7);
Tailwind
colors: {
  custom: {
    50: '#886ac1',
    500: '#4d2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ea6;
$custom-light: #886ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ea6",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 255.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41707,
    "c": 0.1801,
    "h": 287.7
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#4D2EA6
secondary
#ACC16F
accent
#E048B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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