#4D156A#4D156A

#4D156A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.141 H 310.9°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#4D156A
RGBrgb(77, 21, 106)
HSLhsl(280, 67%, 25%)
HSVhsv(280, 80%, 42%)
CMYKcmyk(27.4%, 80.2%, 0%, 58.4%)
CIE-LABlab(20.65, 40.32, -37.58)
CIE-LCHlch(20.65, 55.11, 317.01°)
OKLaboklab(33.41% 0.0923 -0.1065)
OKLCHoklch(33.41% 0.141 310.9)
XYZxyz(5.9298, 3.1549, 13.9295)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D156A #326A15
analogous
#22156A #4D156A #6A155D
triadic
#4D156A #6A4D15 #156A4D
tetradic
#4D156A #6A2215 #326A15 #155D6A
square
#4D156A #6A2215 #326A15 #155D6A
split-complementary
#4D156A #5D6A15 #156A22
monochromatic
#13051A #280B37 #4D156A #721F9D #9729D0

Accessibility & contrast

On white

12.88
#4D156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4D156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D156A
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D156A#FFFFFF#000000##FFFFFF
##4D156A1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#033368
Tritanopia (blue-blind)
#49293F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d156a;
/* rgb */ color: rgb(77, 21, 106);
/* oklch */ color: oklch(33.4% 0.141 310.9);
Tailwind
colors: {
  custom: {
    50: '#825995',
    500: '#4d156a',
    950: '#000000',
  },
}
SCSS
$custom: #4d156a;
$custom-light: #825995;
$custom-dark: #000000;
JSON
{
  "hex": "#4d156a",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 279.529,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33408,
    "c": 0.1409,
    "h": 310.9
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#4D156A
secondary
#5DA13A
accent
#EA3E79
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D156A

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

Preview Lab → · Contrast checker → · Palette generator →

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