#4D156D#4D156D

#4D156D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.144 H 309.5°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#4D156D
RGBrgb(77, 21, 109)
HSLhsl(278, 68%, 25%)
HSVhsv(278, 81%, 43%)
CMYKcmyk(29.4%, 80.7%, 0%, 57.3%)
CIE-LABlab(20.90, 41.02, -39.14)
CIE-LCHlch(20.90, 56.69, 316.34°)
OKLaboklab(33.66% 0.0917 -0.111)
OKLCHoklch(33.66% 0.144 309.5)
XYZxyz(6.0885, 3.2184, 14.7655)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D156D #356D15
analogous
#21156D #4D156D #6D1561
triadic
#4D156D #6D4D15 #156D4D
tetradic
#4D156D #6D2115 #356D15 #15616D
square
#4D156D #6D2115 #356D15 #15616D
split-complementary
#4D156D #616D15 #156D21
monochromatic
#12051A #290B3A #4D156D #711FA0 #9529D4

Accessibility & contrast

On white

12.78
#4D156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D156D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D156D#FFFFFF#000000##FFFFFF
##4D156D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#482B40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d156d;
/* rgb */ color: rgb(77, 21, 109);
/* oklch */ color: oklch(33.7% 0.144 309.5);
Tailwind
colors: {
  custom: {
    50: '#835997',
    500: '#4d156d',
    950: '#000000',
  },
}
SCSS
$custom: #4d156d;
$custom-light: #835997;
$custom-dark: #000000;
JSON
{
  "hex": "#4d156d",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 278.182,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33657,
    "c": 0.14398,
    "h": 309.5
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#4D156D
secondary
#61A33A
accent
#EB3D7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D156D

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

Preview Lab → · Contrast checker → · Palette generator →

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