#4D196B#4D196B

#4D196B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.137 H 309.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#4D196B
RGBrgb(77, 25, 107)
HSLhsl(278, 62%, 26%)
HSVhsv(278, 77%, 42%)
CMYKcmyk(28%, 76.6%, 0%, 58%)
CIE-LABlab(21.34, 38.83, -37.12)
CIE-LCHlch(21.34, 53.72, 316.28°)
OKLaboklab(33.92% 0.088 -0.1052)
OKLCHoklch(33.92% 0.137 309.9)
XYZxyz(6.0615, 3.3347, 14.2314)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D196B #376B19
analogous
#24196B #4D196B #6B1960
triadic
#4D196B #6B4D19 #196B4D
tetradic
#4D196B #6B2419 #376B19 #19606B
square
#4D196B #6B2419 #376B19 #19606B
split-complementary
#4D196B #606B19 #196B24
monochromatic
#120619 #290D39 #4D196B #71259D #9430CE

Accessibility & contrast

On white

12.60
#4D196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4D196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D196B
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D196B#FFFFFF#000000##FFFFFF
##4D196B1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#073469
Tritanopia (blue-blind)
#492C40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d196b;
/* rgb */ color: rgb(77, 25, 107);
/* oklch */ color: oklch(33.9% 0.137 309.9);
Tailwind
colors: {
  custom: {
    50: '#825b96',
    500: '#4d196b',
    950: '#000000',
  },
}
SCSS
$custom: #4d196b;
$custom-light: #825b96;
$custom-dark: #000000;
JSON
{
  "hex": "#4d196b",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 278.049,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33916,
    "c": 0.13712,
    "h": 309.9
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#4D196B
secondary
#63A13F
accent
#E5437E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D196B

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

Preview Lab → · Contrast checker → · Palette generator →

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