#4D146A#4D146A

#4D146A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.142 H 311.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#4D146A
RGBrgb(77, 20, 106)
HSLhsl(280, 68%, 25%)
HSVhsv(280, 81%, 42%)
CMYKcmyk(27.4%, 81.1%, 0%, 58.4%)
CIE-LABlab(20.51, 40.72, -37.81)
CIE-LCHlch(20.51, 55.56, 317.12°)
OKLaboklab(33.31% 0.0933 -0.1071)
OKLCHoklch(33.31% 0.142 311)
XYZxyz(5.9117, 3.1188, 13.9235)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D146A #316A14
analogous
#22146A #4D146A #6A145C
triadic
#4D146A #6A4D14 #146A4D
tetradic
#4D146A #6A2214 #316A14 #145C6A
square
#4D146A #6A2214 #316A14 #145C6A
split-complementary
#4D146A #5C6A14 #146A22
monochromatic
#13051A #280A37 #4D146A #721E9D #9827D1

Accessibility & contrast

On white

12.93
#4D146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4D146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D146A
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D146A#FFFFFF#000000##FFFFFF
##4D146A1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#013268
Tritanopia (blue-blind)
#49293F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d146a;
/* rgb */ color: rgb(77, 20, 106);
/* oklch */ color: oklch(33.3% 0.142 311.0);
Tailwind
colors: {
  custom: {
    50: '#835995',
    500: '#4d146a',
    950: '#000000',
  },
}
SCSS
$custom: #4d146a;
$custom-light: #835995;
$custom-dark: #000000;
JSON
{
  "hex": "#4d146a",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 279.767,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33309,
    "c": 0.14204,
    "h": 311
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#4D146A
secondary
#5CA139
accent
#EB3D78
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D146A

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

Preview Lab → · Contrast checker → · Palette generator →

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