#4D1680#4D1680

#4D1680 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.163 H 301.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#4D1680
RGBrgb(77, 22, 128)
HSLhsl(271, 71%, 29%)
HSVhsv(271, 83%, 50%)
CMYKcmyk(39.8%, 82.8%, 0%, 49.8%)
CIE-LABlab(22.69, 45.22, -48.39)
CIE-LCHlch(22.69, 66.23, 313.06°)
OKLaboklab(35.42% 0.0856 -0.1383)
OKLCHoklch(35.42% 0.163 301.8)
XYZxyz(7.2428, 3.7101, 20.7524)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1680 #498016
analogous
#181680 #4D1680 #80167E
triadic
#4D1680 #804D16 #16804D
tetradic
#4D1680 #801816 #498016 #167E80
square
#4D1680 #801816 #498016 #167E80
split-complementary
#4D1680 #7E8016 #168018
monochromatic
#10041A #2E0D4C #4D1680 #6C1FB4 #8B34DC

Accessibility & contrast

On white

12.06
#4D1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1680
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1680#FFFFFF#000000##FFFFFF
##4D16801.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#42334C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1680;
/* rgb */ color: rgb(77, 22, 128);
/* oklch */ color: oklch(35.4% 0.163 301.8);
Tailwind
colors: {
  custom: {
    50: '#855ba6',
    500: '#4d1680',
    950: '#000000',
  },
}
SCSS
$custom: #4d1680;
$custom-light: #855ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1680",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 271.132,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35423,
    "c": 0.16259,
    "h": 301.8
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#4D1680
secondary
#77B53D
accent
#ED3A91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1680

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

Preview Lab → · Contrast checker → · Palette generator →

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