#4D196A#4D196A

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

Color values

HEX#4D196A
RGBrgb(77, 25, 106)
HSLhsl(279, 62%, 26%)
HSVhsv(279, 76%, 42%)
CMYKcmyk(27.4%, 76.4%, 0%, 58.4%)
CIE-LABlab(21.26, 38.59, -36.60)
CIE-LCHlch(21.26, 53.18, 316.51°)
OKLaboklab(33.84% 0.0882 -0.1036)
OKLCHoklch(33.84% 0.136 310.4)
XYZxyz(6.0092, 3.3138, 13.9559)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D196A #366A19
analogous
#25196A #4D196A #6A195E
triadic
#4D196A #6A4D19 #196A4D
tetradic
#4D196A #6A2519 #366A19 #195E6A
square
#4D196A #6A2519 #366A19 #195E6A
split-complementary
#4D196A #5E6A19 #196A25
monochromatic
#120619 #290D38 #4D196A #71259C #9530CD

Accessibility & contrast

On white

12.63
#4D196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4D196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D196A
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D196A#FFFFFF#000000##FFFFFF
##4D196A1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#093468
Tritanopia (blue-blind)
#492B40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d196a;
/* rgb */ color: rgb(77, 25, 106);
/* oklch */ color: oklch(33.8% 0.136 310.4);
Tailwind
colors: {
  custom: {
    50: '#825b95',
    500: '#4d196a',
    950: '#000000',
  },
}
SCSS
$custom: #4d196a;
$custom-light: #825b95;
$custom-dark: #000000;
JSON
{
  "hex": "#4d196a",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 278.519,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33836,
    "c": 0.13604,
    "h": 310.4
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#4D196A
secondary
#62A03F
accent
#E5437D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D196A

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

Preview Lab → · Contrast checker → · Palette generator →

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