#4D196E#4D196E

#4D196E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.140 H 308.5°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#4D196E
RGBrgb(77, 25, 110)
HSLhsl(277, 63%, 26%)
HSVhsv(277, 77%, 43%)
CMYKcmyk(30%, 77.3%, 0%, 56.9%)
CIE-LABlab(21.58, 39.55, -38.69)
CIE-LCHlch(21.58, 55.32, 315.63°)
OKLaboklab(34.16% 0.0874 -0.1097)
OKLCHoklch(34.16% 0.14 308.5)
XYZxyz(6.2221, 3.3989, 15.0771)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D196E #3A6E19
analogous
#23196E #4D196E #6E1965
triadic
#4D196E #6E4D19 #196E4D
tetradic
#4D196E #6E2319 #3A6E19 #19656E
square
#4D196E #6E2319 #3A6E19 #19656E
split-complementary
#4D196E #656E19 #196E23
monochromatic
#110619 #2A0E3C #4D196E #7024A0 #9231D0

Accessibility & contrast

On white

12.50
#4D196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D196E
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D196E#FFFFFF#000000##FFFFFF
##4D196E1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#482D42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d196e;
/* rgb */ color: rgb(77, 25, 110);
/* oklch */ color: oklch(34.2% 0.140 308.5);
Tailwind
colors: {
  custom: {
    50: '#835b98',
    500: '#4d196e',
    950: '#000000',
  },
}
SCSS
$custom: #4d196e;
$custom-light: #835b98;
$custom-dark: #000000;
JSON
{
  "hex": "#4d196e",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 276.706,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3416,
    "c": 0.14032,
    "h": 308.5
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#4D196E
secondary
#66A33F
accent
#E64282
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D196E

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

Preview Lab → · Contrast checker → · Palette generator →

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