#4D146D#4D146D

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

Color values

HEX#4D146D
RGBrgb(77, 20, 109)
HSLhsl(278, 69%, 25%)
HSVhsv(278, 82%, 43%)
CMYKcmyk(29.4%, 81.7%, 0%, 57.3%)
CIE-LABlab(20.76, 41.42, -39.36)
CIE-LCHlch(20.76, 57.14, 316.46°)
OKLaboklab(33.56% 0.0926 -0.1117)
OKLCHoklch(33.56% 0.145 309.7)
XYZxyz(6.0705, 3.1823, 14.7595)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D146D #346D14
analogous
#21146D #4D146D #6D1460
triadic
#4D146D #6D4D14 #146D4D
tetradic
#4D146D #6D2114 #346D14 #14606D
square
#4D146D #6D2114 #346D14 #14606D
split-complementary
#4D146D #606D14 #146D21
monochromatic
#12051A #280B39 #4D146D #721DA1 #9627D4

Accessibility & contrast

On white

12.83
#4D146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D146D
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D146D#FFFFFF#000000##FFFFFF
##4D146D1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d146d;
/* rgb */ color: rgb(77, 20, 109);
/* oklch */ color: oklch(33.6% 0.145 309.7);
Tailwind
colors: {
  custom: {
    50: '#835997',
    500: '#4d146d',
    950: '#000000',
  },
}
SCSS
$custom: #4d146d;
$custom-light: #835997;
$custom-dark: #000000;
JSON
{
  "hex": "#4d146d",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 278.427,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3356,
    "c": 0.14508,
    "h": 309.7
  },
  "luminance": 0.03182
}

Semantic roles & 50–950 ramp

primary
#4D146D
secondary
#5FA439
accent
#EC3C7B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D146D

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

Preview Lab → · Contrast checker → · Palette generator →

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