#4C197D#4C197D

#4C197D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.156 H 301.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#4C197D
RGBrgb(76, 25, 125)
HSLhsl(271, 67%, 29%)
HSVhsv(271, 80%, 49%)
CMYKcmyk(39.2%, 80%, 0%, 51%)
CIE-LABlab(22.70, 43.07, -46.48)
CIE-LCHlch(22.70, 63.37, 312.82°)
OKLaboklab(35.31% 0.0824 -0.1327)
OKLCHoklch(35.31% 0.156 301.8)
XYZxyz(7.0289, 3.7124, 19.7443)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C197D #4A7D19
analogous
#1A197D #4C197D #7D197C
triadic
#4C197D #7D4C19 #197D4C
tetradic
#4C197D #7D1A19 #4A7D19 #197C7D
square
#4C197D #7D1A19 #4A7D19 #197C7D
split-complementary
#4C197D #7C7D19 #197D1A
monochromatic
#10051A #2D0F4A #4C197D #6B23B0 #8A39D7

Accessibility & contrast

On white

12.05
#4C197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4C197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C197D
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C197D#FFFFFF#000000##FFFFFF
##4C197D1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#41334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c197d;
/* rgb */ color: rgb(76, 25, 125);
/* oklch */ color: oklch(35.3% 0.156 301.8);
Tailwind
colors: {
  custom: {
    50: '#835ca3',
    500: '#4c197d',
    950: '#000000',
  },
}
SCSS
$custom: #4c197d;
$custom-light: #835ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c197d",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 270.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35314,
    "c": 0.15619,
    "h": 301.8
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#4C197D
secondary
#78B140
accent
#EA3E92
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C197D

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

Preview Lab → · Contrast checker → · Palette generator →

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