#4D2E9A#4D2E9A

#4D2E9A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.165 H 290.2°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4D2E9A
RGBrgb(77, 46, 154)
HSLhsl(257, 54%, 39%)
HSVhsv(257, 70%, 60%)
CMYKcmyk(50%, 70.1%, 0%, 39.6%)
CIE-LABlab(29.07, 40.75, -54.12)
CIE-LCHlch(29.07, 67.74, 306.98°)
OKLaboklab(40.63% 0.0572 -0.1552)
OKLCHoklch(40.63% 0.165 290.2)
XYZxyz(9.8686, 5.8645, 31.1776)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E9A #7B9A2E
analogous
#2E459A #4D2E9A #832E9A
triadic
#4D2E9A #9A4D2E #2E9A4D
tetradic
#4D2E9A #9A2E45 #7B9A2E #2E9A83
square
#4D2E9A #9A2E45 #7B9A2E #2E9A83
split-complementary
#4D2E9A #9A832E #459A2E
monochromatic
#1E123C #35206B #4D2E9A #663FC6 #8C6FD4

Accessibility & contrast

On white

9.66
#4D2E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4D2E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E9A
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E9A#FFFFFF#000000##FFFFFF
##4D2E9A1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#334960
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2e9a;
/* rgb */ color: rgb(77, 46, 154);
/* oklch */ color: oklch(40.6% 0.165 290.2);
Tailwind
colors: {
  custom: {
    50: '#8669b9',
    500: '#4d2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e9a;
$custom-light: #8669b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e9a",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 257.222,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40634,
    "c": 0.16542,
    "h": 290.2
  },
  "luminance": 0.05865
}

Semantic roles & 50–950 ramp

primary
#4D2E9A
secondary
#A3BB69
accent
#DD4AB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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