#4D2B79#4D2B79

#4D2B79 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.5% C 0.128 H 300.4°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#4D2B79
RGBrgb(77, 43, 121)
HSLhsl(266, 48%, 32%)
HSVhsv(266, 64%, 47%)
CMYKcmyk(36.4%, 64.5%, 0%, 52.5%)
CIE-LABlab(25.82, 33.00, -38.87)
CIE-LCHlch(25.82, 50.99, 310.33°)
OKLaboklab(37.47% 0.0647 -0.1104)
OKLCHoklch(37.47% 0.128 300.4)
XYZxyz(7.3748, 4.6860, 18.6014)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2B79 #57792B
analogous
#2B3079 #4D2B79 #742B79
triadic
#4D2B79 #794D2B #2B794D
tetradic
#4D2B79 #792B30 #57792B #2B7974
square
#4D2B79 #792B30 #57792B #2B7974
split-complementary
#4D2B79 #79742B #30792B
monochromatic
#140B1F #301B4C #4D2B79 #6A3BA6 #885AC4

Accessibility & contrast

On white

10.84
#4D2B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4D2B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2B79
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2B79#FFFFFF#000000##FFFFFF
##4D2B791.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#0E3D77
Tritanopia (blue-blind)
#443C4D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d2b79;
/* rgb */ color: rgb(77, 43, 121);
/* oklch */ color: oklch(37.5% 0.128 300.4);
Tailwind
colors: {
  custom: {
    50: '#8266a0',
    500: '#4d2b79',
    950: '#000000',
  },
}
SCSS
$custom: #4d2b79;
$custom-light: #8266a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2b79",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 266.154,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37471,
    "c": 0.12796,
    "h": 300.4
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#4D2B79
secondary
#85AA56
accent
#D7519D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4D2B79

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

Preview Lab → · Contrast checker → · Palette generator →

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