#4D196C#4D196C

#4D196C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.138 H 309.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#4D196C
RGBrgb(77, 25, 108)
HSLhsl(278, 62%, 26%)
HSVhsv(278, 77%, 42%)
CMYKcmyk(28.7%, 76.9%, 0%, 57.6%)
CIE-LABlab(21.42, 39.07, -37.65)
CIE-LCHlch(21.42, 54.25, 316.06°)
OKLaboklab(34% 0.0878 -0.1067)
OKLCHoklch(34% 0.138 309.5)
XYZxyz(6.1144, 3.3559, 14.5101)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D196C #386C19
analogous
#23196C #4D196C #6C1961
triadic
#4D196C #6C4D19 #196C4D
tetradic
#4D196C #6C2319 #386C19 #19616C
square
#4D196C #6C2319 #386C19 #19616C
split-complementary
#4D196C #616C19 #196C23
monochromatic
#120619 #2A0D3A #4D196C #70259E #9430CF

Accessibility & contrast

On white

12.57
#4D196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D196C
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D196C#FFFFFF#000000##FFFFFF
##4D196C1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#05346A
Tritanopia (blue-blind)
#482C41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d196c;
/* rgb */ color: rgb(77, 25, 108);
/* oklch */ color: oklch(34.0% 0.138 309.5);
Tailwind
colors: {
  custom: {
    50: '#825b97',
    500: '#4d196c',
    950: '#000000',
  },
}
SCSS
$custom: #4d196c;
$custom-light: #825b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4d196c",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 277.59,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33997,
    "c": 0.13819,
    "h": 309.5
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#4D196C
secondary
#64A13F
accent
#E5427F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D196C

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

Preview Lab → · Contrast checker → · Palette generator →

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