#4D156C#4D156C

#4D156C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.143 H 310.0°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#4D156C
RGBrgb(77, 21, 108)
HSLhsl(279, 67%, 25%)
HSVhsv(279, 81%, 42%)
CMYKcmyk(28.7%, 80.6%, 0%, 57.6%)
CIE-LABlab(20.82, 40.78, -38.62)
CIE-LCHlch(20.82, 56.17, 316.56°)
OKLaboklab(33.57% 0.0919 -0.1095)
OKLCHoklch(33.57% 0.143 310)
XYZxyz(6.0350, 3.1970, 14.4836)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D156C #346C15
analogous
#22156C #4D156C #6C155F
triadic
#4D156C #6C4D15 #156C4D
tetradic
#4D156C #6C2215 #346C15 #155F6C
square
#4D156C #6C2215 #346C15 #155F6C
split-complementary
#4D156C #5F6C15 #156C22
monochromatic
#12051A #280B39 #4D156C #721F9F #9629D2

Accessibility & contrast

On white

12.81
#4D156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D156C
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D156C#FFFFFF#000000##FFFFFF
##4D156C1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#492A40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d156c;
/* rgb */ color: rgb(77, 21, 108);
/* oklch */ color: oklch(33.6% 0.143 310.0);
Tailwind
colors: {
  custom: {
    50: '#835997',
    500: '#4d156c',
    950: '#000000',
  },
}
SCSS
$custom: #4d156c;
$custom-light: #835997;
$custom-dark: #000000;
JSON
{
  "hex": "#4d156c",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 278.621,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33573,
    "c": 0.14296,
    "h": 310
  },
  "luminance": 0.03197
}

Semantic roles & 50–950 ramp

primary
#4D156C
secondary
#5FA33A
accent
#EA3D7B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D156C

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

Preview Lab → · Contrast checker → · Palette generator →

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