#4D2B7E#4D2B7E

#4D2B7E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.134 H 298.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#4D2B7E
RGBrgb(77, 43, 126)
HSLhsl(265, 49%, 33%)
HSVhsv(265, 66%, 49%)
CMYKcmyk(38.9%, 65.9%, 0%, 50.6%)
CIE-LABlab(26.19, 34.39, -41.43)
CIE-LCHlch(26.19, 53.84, 309.69°)
OKLaboklab(37.86% 0.0643 -0.1179)
OKLCHoklch(37.86% 0.134 298.6)
XYZxyz(7.6894, 4.8118, 20.2583)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2B7E #5C7E2B
analogous
#2B337E #4D2B7E #762B7E
triadic
#4D2B7E #7E4D2B #2B7E4D
tetradic
#4D2B7E #7E2B33 #5C7E2B #2B7E76
square
#4D2B7E #7E2B33 #5C7E2B #2B7E76
split-complementary
#4D2B7E #7E762B #337E2B
monochromatic
#150C23 #311B50 #4D2B7E #693BAC #885CC7

Accessibility & contrast

On white

10.70
#4D2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4D2B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2B7E
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2B7E#FFFFFF#000000##FFFFFF
##4D2B7E1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#023D7C
Tritanopia (blue-blind)
#423E50
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2b7e;
/* rgb */ color: rgb(77, 43, 126);
/* oklch */ color: oklch(37.9% 0.134 298.6);
Tailwind
colors: {
  custom: {
    50: '#8366a4',
    500: '#4d2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2b7e;
$custom-light: #8366a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2b7e",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 264.578,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37858,
    "c": 0.13433,
    "h": 298.6
  },
  "luminance": 0.04812
}

Semantic roles & 50–950 ramp

primary
#4D2B7E
secondary
#8AAD58
accent
#D94FA0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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