#4D2672#4D2672

#4D2672 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.127 H 304.4°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4D2672
RGBrgb(77, 38, 114)
HSLhsl(271, 50%, 30%)
HSVhsv(271, 67%, 45%)
CMYKcmyk(32.5%, 66.7%, 0%, 55.3%)
CIE-LABlab(24.25, 33.96, -36.93)
CIE-LCHlch(24.25, 50.17, 312.60°)
OKLaboklab(36.17% 0.0716 -0.1047)
OKLCHoklch(36.17% 0.127 304.4)
XYZxyz(6.7903, 4.1789, 16.3652)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2672 #4B7226
analogous
#272672 #4D2672 #722671
triadic
#4D2672 #724D26 #26724D
tetradic
#4D2672 #722726 #4B7226 #267172
square
#4D2672 #722726 #4B7226 #267172
split-complementary
#4D2672 #717226 #267227
monochromatic
#100817 #2E1744 #4D2672 #6C35A0 #8B4EC4

Accessibility & contrast

On white

11.44
#4D2672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D2672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2672
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2672#FFFFFF#000000##FFFFFF
##4D26721.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#113A70
Tritanopia (blue-blind)
#463648
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d2672;
/* rgb */ color: rgb(77, 38, 114);
/* oklch */ color: oklch(36.2% 0.127 304.4);
Tailwind
colors: {
  custom: {
    50: '#82639b',
    500: '#4d2672',
    950: '#000000',
  },
}
SCSS
$custom: #4d2672;
$custom-light: #82639b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2672",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 114
  },
  "hsl": {
    "h": 270.789,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36174,
    "c": 0.12683,
    "h": 304.4
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

primary
#4D2672
secondary
#79A54F
accent
#DA4E92
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4D2672

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

Preview Lab → · Contrast checker → · Palette generator →

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