#4C197A#4C197A

#4C197A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.153 H 302.9°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#4C197A
RGBrgb(76, 25, 122)
HSLhsl(272, 66%, 29%)
HSVhsv(272, 80%, 48%)
CMYKcmyk(37.7%, 79.5%, 0%, 52.2%)
CIE-LABlab(22.43, 42.32, -45.01)
CIE-LCHlch(22.43, 61.78, 313.24°)
OKLaboklab(35.05% 0.0832 -0.1284)
OKLCHoklch(35.05% 0.153 302.9)
XYZxyz(6.8401, 3.6369, 18.7502)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C197A #477A19
analogous
#1C197A #4C197A #7A1978
triadic
#4C197A #7A4C19 #197A4C
tetradic
#4C197A #7A1C19 #477A19 #19787A
square
#4C197A #7A1C19 #477A19 #19787A
split-complementary
#4C197A #787A19 #197A1C
monochromatic
#100519 #2C0F47 #4C197A #6C23AD #8B37D6

Accessibility & contrast

On white

12.16
#4C197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4C197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C197A
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C197A#FFFFFF#000000##FFFFFF
##4C197A1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#423249
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c197a;
/* rgb */ color: rgb(76, 25, 122);
/* oklch */ color: oklch(35.0% 0.153 302.9);
Tailwind
colors: {
  custom: {
    50: '#835ca1',
    500: '#4c197a',
    950: '#000000',
  },
}
SCSS
$custom: #4c197a;
$custom-light: #835ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c197a",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 271.546,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.15296,
    "h": 302.9
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#4C197A
secondary
#75AF40
accent
#E93F90
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C197A

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

Preview Lab → · Contrast checker → · Palette generator →

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