#4D156B#4D156B

#4D156B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.142 H 310.5°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#4D156B
RGBrgb(77, 21, 107)
HSLhsl(279, 67%, 25%)
HSVhsv(279, 80%, 42%)
CMYKcmyk(28%, 80.4%, 0%, 58%)
CIE-LABlab(20.73, 40.55, -38.10)
CIE-LCHlch(20.73, 55.64, 316.78°)
OKLaboklab(33.49% 0.0921 -0.108)
OKLCHoklch(33.49% 0.142 310.5)
XYZxyz(5.9821, 3.1758, 14.2049)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D156B #336B15
analogous
#22156B #4D156B #6B155E
triadic
#4D156B #6B4D15 #156B4D
tetradic
#4D156B #6B2215 #336B15 #155E6B
square
#4D156B #6B2215 #336B15 #155E6B
split-complementary
#4D156B #5E6B15 #156B22
monochromatic
#12051A #280B38 #4D156B #721F9E #9729D1

Accessibility & contrast

On white

12.84
#4D156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4D156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D156B
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D156B#FFFFFF#000000##FFFFFF
##4D156B1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#013369
Tritanopia (blue-blind)
#492A3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d156b;
/* rgb */ color: rgb(77, 21, 107);
/* oklch */ color: oklch(33.5% 0.142 310.5);
Tailwind
colors: {
  custom: {
    50: '#835996',
    500: '#4d156b',
    950: '#000000',
  },
}
SCSS
$custom: #4d156b;
$custom-light: #835996;
$custom-dark: #000000;
JSON
{
  "hex": "#4d156b",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 279.07,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3349,
    "c": 0.14193,
    "h": 310.5
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#4D156B
secondary
#5EA23A
accent
#EA3E7A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D156B

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

Preview Lab → · Contrast checker → · Palette generator →

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