#4D146C#4D146C

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

Color values

HEX#4D146C
RGBrgb(77, 20, 108)
HSLhsl(279, 69%, 25%)
HSVhsv(279, 81%, 42%)
CMYKcmyk(28.7%, 81.5%, 0%, 57.6%)
CIE-LABlab(20.68, 41.18, -38.84)
CIE-LCHlch(20.68, 56.61, 316.67°)
OKLaboklab(33.48% 0.0928 -0.1102)
OKLCHoklch(33.48% 0.144 310.1)
XYZxyz(6.0170, 3.1609, 14.4776)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D146C #336C14
analogous
#21146C #4D146C #6C145F
triadic
#4D146C #6C4D14 #146C4D
tetradic
#4D146C #6C2114 #336C14 #145F6C
square
#4D146C #6C2114 #336C14 #145F6C
split-complementary
#4D146C #5F6C14 #146C21
monochromatic
#12051A #280A38 #4D146C #721EA0 #9727D3

Accessibility & contrast

On white

12.87
#4D146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D146C
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D146C#FFFFFF#000000##FFFFFF
##4D146C1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d146c;
/* rgb */ color: rgb(77, 20, 108);
/* oklch */ color: oklch(33.5% 0.144 310.1);
Tailwind
colors: {
  custom: {
    50: '#835997',
    500: '#4d146c',
    950: '#000000',
  },
}
SCSS
$custom: #4d146c;
$custom-light: #835997;
$custom-dark: #000000;
JSON
{
  "hex": "#4d146c",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 278.864,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33476,
    "c": 0.14406,
    "h": 310.1
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#4D146C
secondary
#5EA339
accent
#EC3C7A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D146C

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

Preview Lab → · Contrast checker → · Palette generator →

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