#4D2E72#4D2E72

#4D2E72 is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.4% C 0.114 H 302.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4D2E72
RGBrgb(77, 46, 114)
HSLhsl(267, 43%, 31%)
HSVhsv(267, 60%, 45%)
CMYKcmyk(32.5%, 59.6%, 0%, 55.3%)
CIE-LABlab(26.00, 29.28, -34.13)
CIE-LCHlch(26.00, 44.97, 310.63°)
OKLaboklab(37.45% 0.0608 -0.0965)
OKLCHoklch(37.45% 0.114 302.2)
XYZxyz(7.0741, 4.7467, 16.4598)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E72 #53722E
analogous
#2E3172 #4D2E72 #6F2E72
triadic
#4D2E72 #724D2E #2E724D
tetradic
#4D2E72 #722E31 #53722E #2E726F
square
#4D2E72 #722E31 #53722E #2E726F
split-complementary
#4D2E72 #726F2E #31722E
monochromatic
#120B1B #301C46 #4D2E72 #6A409E #895DBE

Accessibility & contrast

On white

10.77
#4D2E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D2E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E72
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E72#FFFFFF#000000##FFFFFF
##4D2E721.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D74
Deuteranopia (green-blind)
#1D3D70
Tritanopia (blue-blind)
#463B4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2e72;
/* rgb */ color: rgb(77, 46, 114);
/* oklch */ color: oklch(37.4% 0.114 302.2);
Tailwind
colors: {
  custom: {
    50: '#81689b',
    500: '#4d2e72',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e72;
$custom-light: #81689b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e72",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 114
  },
  "hsl": {
    "h": 267.353,
    "s": 42.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37446,
    "c": 0.11404,
    "h": 302.2
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#4D2E72
secondary
#81A358
accent
#D25699
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4D2E72

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

Preview Lab → · Contrast checker → · Palette generator →

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