#4D2071#4D2071

#4D2071 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.134 H 306.1°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#4D2071
RGBrgb(77, 32, 113)
HSLhsl(273, 56%, 28%)
HSVhsv(273, 72%, 44%)
CMYKcmyk(31.9%, 71.7%, 0%, 55.7%)
CIE-LABlab(23.01, 36.92, -38.30)
CIE-LCHlch(23.01, 53.20, 313.95°)
OKLaboklab(35.25% 0.0791 -0.1087)
OKLCHoklch(35.25% 0.134 306.1)
XYZxyz(6.5571, 3.8031, 16.0082)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2071 #447120
analogous
#242071 #4D2071 #71206C
triadic
#4D2071 #714D20 #20714D
tetradic
#4D2071 #712420 #447120 #206C71
square
#4D2071 #712420 #447120 #206C71
split-complementary
#4D2071 #6C7120 #207124
monochromatic
#100718 #2C1241 #4D2071 #6D2EA1 #8D42C9

Accessibility & contrast

On white

11.93
#4D2071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4D2071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2071
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2071#FFFFFF#000000##FFFFFF
##4D20711.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#07376F
Tritanopia (blue-blind)
#473246
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d2071;
/* rgb */ color: rgb(77, 32, 113);
/* oklch */ color: oklch(35.3% 0.134 306.1);
Tailwind
colors: {
  custom: {
    50: '#825f9a',
    500: '#4d2071',
    950: '#000000',
  },
}
SCSS
$custom: #4d2071;
$custom-light: #825f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2071",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 273.333,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35255,
    "c": 0.13442,
    "h": 306.1
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#4D2071
secondary
#71A548
accent
#DF498C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D2071

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

Preview Lab → · Contrast checker → · Palette generator →

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