#4D2F71#4D2F71

#4D2F71 is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.5% C 0.111 H 302.3°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#4D2F71
RGBrgb(77, 47, 113)
HSLhsl(267, 41%, 31%)
HSVhsv(267, 58%, 44%)
CMYKcmyk(31.9%, 58.4%, 0%, 55.7%)
CIE-LABlab(26.17, 28.40, -33.22)
CIE-LCHlch(26.17, 43.71, 310.52°)
OKLaboklab(37.55% 0.0594 -0.0938)
OKLCHoklch(37.55% 0.111 302.3)
XYZxyz(7.0570, 4.8031, 16.1749)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F71 #53712F
analogous
#2F3271 #4D2F71 #6E2F71
triadic
#4D2F71 #714D2F #2F714D
tetradic
#4D2F71 #712F32 #53712F #2F716E
square
#4D2F71 #712F32 #53712F #2F716E
split-complementary
#4D2F71 #716E2F #32712F
monochromatic
#120B1B #301D46 #4D2F71 #6A419C #895EBC

Accessibility & contrast

On white

10.71
#4D2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2F71
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F71#FFFFFF#000000##FFFFFF
##4D2F711.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153D73
Deuteranopia (green-blind)
#203E6F
Tritanopia (blue-blind)
#463C4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2f71;
/* rgb */ color: rgb(77, 47, 113);
/* oklch */ color: oklch(37.5% 0.111 302.3);
Tailwind
colors: {
  custom: {
    50: '#81699a',
    500: '#4d2f71',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f71;
$custom-light: #81699a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f71",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 267.273,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37546,
    "c": 0.11103,
    "h": 302.3
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#4D2F71
secondary
#81A25A
accent
#D15799
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4D2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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