#4C196C#4C196C

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

Color values

HEX#4C196C
RGBrgb(76, 25, 108)
HSLhsl(277, 62%, 26%)
HSVhsv(277, 77%, 42%)
CMYKcmyk(29.6%, 76.9%, 0%, 57.6%)
CIE-LABlab(21.26, 38.85, -37.90)
CIE-LCHlch(21.26, 54.28, 315.71°)
OKLaboklab(33.86% 0.0863 -0.1075)
OKLCHoklch(33.86% 0.138 308.8)
XYZxyz(6.0343, 3.3146, 14.5063)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C196C #396C19
analogous
#22196C #4C196C #6C1962
triadic
#4C196C #6C4C19 #196C4C
tetradic
#4C196C #6C2219 #396C19 #19626C
square
#4C196C #6C2219 #396C19 #19626C
split-complementary
#4C196C #626C19 #196C22
monochromatic
#110619 #290D3A #4C196C #6F259E #9230CF

Accessibility & contrast

On white

12.63
#4C196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C196C
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C196C#FFFFFF#000000##FFFFFF
##4C196C1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c196c;
/* rgb */ color: rgb(76, 25, 108);
/* oklch */ color: oklch(33.9% 0.138 308.8);
Tailwind
colors: {
  custom: {
    50: '#825b97',
    500: '#4c196c',
    950: '#000000',
  },
}
SCSS
$custom: #4c196c;
$custom-light: #825b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4c196c",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 276.867,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33856,
    "c": 0.13787,
    "h": 308.8
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#4C196C
secondary
#65A13F
accent
#E54281
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C196C

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

Preview Lab → · Contrast checker → · Palette generator →

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