#4D2081#4D2081

#4D2081 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.153 H 299.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#4D2081
RGBrgb(77, 32, 129)
HSLhsl(268, 60%, 32%)
HSVhsv(268, 75%, 51%)
CMYKcmyk(40.3%, 75.2%, 0%, 49.4%)
CIE-LABlab(24.31, 41.08, -46.38)
CIE-LCHlch(24.31, 61.96, 311.53°)
OKLaboklab(36.59% 0.0762 -0.1324)
OKLCHoklch(36.59% 0.153 299.9)
XYZxyz(7.5385, 4.1957, 21.1773)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2081 #548120
analogous
#202481 #4D2081 #7E2081
triadic
#4D2081 #814D20 #20814D
tetradic
#4D2081 #812024 #548120 #20817E
square
#4D2081 #812024 #548120 #20817E
split-complementary
#4D2081 #817E20 #248120
monochromatic
#12081F #301450 #4D2081 #6A2CB2 #8949D2

Accessibility & contrast

On white

11.42
#4D2081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2081
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2081#FFFFFF#000000##FFFFFF
##4D20811.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#41384E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d2081;
/* rgb */ color: rgb(77, 32, 129);
/* oklch */ color: oklch(36.6% 0.153 299.9);
Tailwind
colors: {
  custom: {
    50: '#8460a6',
    500: '#4d2081',
    950: '#000000',
  },
}
SCSS
$custom: #4d2081;
$custom-light: #8460a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2081",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 129
  },
  "hsl": {
    "h": 267.835,
    "s": 60.248,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36586,
    "c": 0.1528,
    "h": 299.9
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#4D2081
secondary
#82B449
accent
#E3449A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D2081

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

Preview Lab → · Contrast checker → · Palette generator →

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