#4D196D#4D196D

#4D196D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.139 H 309.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4D196D
RGBrgb(77, 25, 109)
HSLhsl(277, 63%, 26%)
HSVhsv(277, 77%, 43%)
CMYKcmyk(29.4%, 77.1%, 0%, 57.3%)
CIE-LABlab(21.50, 39.31, -38.17)
CIE-LCHlch(21.50, 54.79, 315.84°)
OKLaboklab(34.08% 0.0876 -0.1082)
OKLCHoklch(34.08% 0.139 309)
XYZxyz(6.1680, 3.3773, 14.7920)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D196D #396D19
analogous
#23196D #4D196D #6D1963
triadic
#4D196D #6D4D19 #196D4D
tetradic
#4D196D #6D2319 #396D19 #19636D
square
#4D196D #6D2319 #396D19 #19636D
split-complementary
#4D196D #636D19 #196D23
monochromatic
#120619 #2A0E3B #4D196D #70249F #9331D0

Accessibility & contrast

On white

12.53
#4D196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D196D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D196D#FFFFFF#000000##FFFFFF
##4D196D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#03346B
Tritanopia (blue-blind)
#482D41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d196d;
/* rgb */ color: rgb(77, 25, 109);
/* oklch */ color: oklch(34.1% 0.139 309.0);
Tailwind
colors: {
  custom: {
    50: '#825b97',
    500: '#4d196d',
    950: '#000000',
  },
}
SCSS
$custom: #4d196d;
$custom-light: #825b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4d196d",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 277.143,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34078,
    "c": 0.13926,
    "h": 309
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#4D196D
secondary
#65A23F
accent
#E64280
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D196D

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

Preview Lab → · Contrast checker → · Palette generator →

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