#4C197C#4C197C

#4C197C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.155 H 302.2°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#4C197C
RGBrgb(76, 25, 124)
HSLhsl(271, 66%, 29%)
HSVhsv(271, 80%, 49%)
CMYKcmyk(38.7%, 79.8%, 0%, 51.4%)
CIE-LABlab(22.61, 42.82, -45.99)
CIE-LCHlch(22.61, 62.84, 312.95°)
OKLaboklab(35.23% 0.0827 -0.1313)
OKLCHoklch(35.23% 0.155 302.2)
XYZxyz(6.9653, 3.6870, 19.4096)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C197C #497C19
analogous
#1B197C #4C197C #7C197B
triadic
#4C197C #7C4C19 #197C4C
tetradic
#4C197C #7C1B19 #497C19 #197B7C
square
#4C197C #7C1B19 #497C19 #197B7C
split-complementary
#4C197C #7B7C19 #197C1B
monochromatic
#100519 #2D0F49 #4C197C #6B23AF #8A38D7

Accessibility & contrast

On white

12.09
#4C197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C197C
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C197C#FFFFFF#000000##FFFFFF
##4C197C1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#42334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c197c;
/* rgb */ color: rgb(76, 25, 124);
/* oklch */ color: oklch(35.2% 0.155 302.2);
Tailwind
colors: {
  custom: {
    50: '#835ca3',
    500: '#4c197c',
    950: '#000000',
  },
}
SCSS
$custom: #4c197c;
$custom-light: #835ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c197c",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 270.909,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35225,
    "c": 0.15512,
    "h": 302.2
  },
  "luminance": 0.03687
}

Semantic roles & 50–950 ramp

primary
#4C197C
secondary
#77B040
accent
#E93E91
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C197C

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

Preview Lab → · Contrast checker → · Palette generator →

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