#4D2E9B#4D2E9B

#4D2E9B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.167 H 290.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4D2E9B
RGBrgb(77, 46, 155)
HSLhsl(257, 54%, 39%)
HSVhsv(257, 70%, 61%)
CMYKcmyk(50.3%, 70.3%, 0%, 39.2%)
CIE-LABlab(29.15, 41.04, -54.59)
CIE-LCHlch(29.15, 68.30, 306.94°)
OKLaboklab(40.72% 0.057 -0.1566)
OKLCHoklch(40.72% 0.167 290)
XYZxyz(9.9523, 5.8979, 31.6180)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E9B #7C9B2E
analogous
#2E469B #4D2E9B #842E9B
triadic
#4D2E9B #9B4D2E #2E9B4D
tetradic
#4D2E9B #9B2E46 #7C9B2E #2E9B84
square
#4D2E9B #9B2E46 #7C9B2E #2E9B84
split-complementary
#4D2E9B #9B842E #469B2E
monochromatic
#1E123D #36206C #4D2E9B #6640C6 #8C6FD4

Accessibility & contrast

On white

9.63
#4D2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4D2E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E9B
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E9B#FFFFFF#000000##FFFFFF
##4D2E9B1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#324A61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2e9b;
/* rgb */ color: rgb(77, 46, 155);
/* oklch */ color: oklch(40.7% 0.167 290.0);
Tailwind
colors: {
  custom: {
    50: '#8669b9',
    500: '#4d2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e9b;
$custom-light: #8669b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e9b",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 257.064,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40722,
    "c": 0.16666,
    "h": 290
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#4D2E9B
secondary
#A4BC69
accent
#DE4AB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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