#4D2EA5#4D2EA5

#4D2EA5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.179 H 287.9°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4D2EA5
RGBrgb(77, 46, 165)
HSLhsl(256, 56%, 41%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(53.3%, 72.1%, 0%, 35.3%)
CIE-LABlab(30.03, 43.98, -59.22)
CIE-LCHlch(30.03, 73.77, 306.60°)
OKLaboklab(41.62% 0.0551 -0.1702)
OKLCHoklch(41.62% 0.179 287.9)
XYZxyz(10.8271, 6.2479, 36.2255)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EA5 #86A52E
analogous
#2E4BA5 #4D2EA5 #892EA5
triadic
#4D2EA5 #A54D2E #2EA54D
tetradic
#4D2EA5 #A52E4B #86A52E #2EA589
square
#4D2EA5 #A52E4B #86A52E #2EA589
split-complementary
#4D2EA5 #A5892E #4BA52E
monochromatic
#201345 #372175 #4D2EA5 #6845CB #8F75D8

Accessibility & contrast

On white

9.33
#4D2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4D2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EA5
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EA5#FFFFFF#000000##FFFFFF
##4D2EA51.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#2B4D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2ea5;
/* rgb */ color: rgb(77, 46, 165);
/* oklch */ color: oklch(41.6% 0.179 287.9);
Tailwind
colors: {
  custom: {
    50: '#886ac1',
    500: '#4d2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ea5;
$custom-light: #886ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ea5",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 255.63,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41616,
    "c": 0.17888,
    "h": 287.9
  },
  "luminance": 0.06248
}

Semantic roles & 50–950 ramp

primary
#4D2EA5
secondary
#ABC06F
accent
#E048B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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