#4C196B#4C196B

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

Color values

HEX#4C196B
RGBrgb(76, 25, 107)
HSLhsl(277, 62%, 26%)
HSVhsv(277, 77%, 42%)
CMYKcmyk(29%, 76.6%, 0%, 58%)
CIE-LABlab(21.18, 38.61, -37.38)
CIE-LCHlch(21.18, 53.74, 315.93°)
OKLaboklab(33.77% 0.0865 -0.106)
OKLCHoklch(33.77% 0.137 309.2)
XYZxyz(5.9814, 3.2934, 14.2277)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C196B #386B19
analogous
#23196B #4C196B #6B1961
triadic
#4C196B #6B4C19 #196B4C
tetradic
#4C196B #6B2319 #386B19 #19616B
square
#4C196B #6B2319 #386B19 #19616B
split-complementary
#4C196B #616B19 #196B23
monochromatic
#120619 #290D39 #4C196B #6F259D #9230CE

Accessibility & contrast

On white

12.66
#4C196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C196B
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C196B#FFFFFF#000000##FFFFFF
##4C196B1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c196b;
/* rgb */ color: rgb(76, 25, 107);
/* oklch */ color: oklch(33.8% 0.137 309.2);
Tailwind
colors: {
  custom: {
    50: '#825b96',
    500: '#4c196b',
    950: '#000000',
  },
}
SCSS
$custom: #4c196b;
$custom-light: #825b96;
$custom-dark: #000000;
JSON
{
  "hex": "#4c196b",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 277.317,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33774,
    "c": 0.1368,
    "h": 309.2
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C196B

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

Preview Lab → · Contrast checker → · Palette generator →

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