#4D156F#4D156F

#4D156F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.146 H 308.6°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#4D156F
RGBrgb(77, 21, 111)
HSLhsl(277, 68%, 26%)
HSVhsv(277, 81%, 44%)
CMYKcmyk(30.6%, 81.1%, 0%, 56.5%)
CIE-LABlab(21.06, 41.49, -40.16)
CIE-LCHlch(21.06, 57.74, 315.93°)
OKLaboklab(33.83% 0.0912 -0.1141)
OKLCHoklch(33.83% 0.146 308.6)
XYZxyz(6.1974, 3.2619, 15.3390)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D156F #376F15
analogous
#20156F #4D156F #6F1564
triadic
#4D156F #6F4D15 #156F4D
tetradic
#4D156F #6F2015 #376F15 #15646F
square
#4D156F #6F2015 #376F15 #15646F
split-complementary
#4D156F #646F15 #156F20
monochromatic
#12051A #290B3C #4D156F #711FA2 #9428D6

Accessibility & contrast

On white

12.71
#4D156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4D156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D156F
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D156F#FFFFFF#000000##FFFFFF
##4D156F1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#482B42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d156f;
/* rgb */ color: rgb(77, 21, 111);
/* oklch */ color: oklch(33.8% 0.146 308.6);
Tailwind
colors: {
  custom: {
    50: '#835a99',
    500: '#4d156f',
    950: '#000000',
  },
}
SCSS
$custom: #4d156f;
$custom-light: #835a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4d156f",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 277.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33825,
    "c": 0.14603,
    "h": 308.6
  },
  "luminance": 0.03262
}

Semantic roles & 50–950 ramp

primary
#4D156F
secondary
#63A53A
accent
#EB3D7F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D156F

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

Preview Lab → · Contrast checker → · Palette generator →

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