#4C197F#4C197F

#4C197F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.158 H 301.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4C197F
RGBrgb(76, 25, 127)
HSLhsl(270, 67%, 30%)
HSVhsv(270, 80%, 50%)
CMYKcmyk(40.2%, 80.3%, 0%, 50.2%)
CIE-LABlab(22.88, 43.58, -47.46)
CIE-LCHlch(22.88, 64.43, 312.56°)
OKLaboklab(35.49% 0.0818 -0.1356)
OKLCHoklch(35.49% 0.158 301.1)
XYZxyz(7.1579, 3.7640, 20.4240)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C197F #4C7F19
analogous
#19197F #4C197F #7F197F
triadic
#4C197F #7F4C19 #197F4C
tetradic
#4C197F #7F1919 #4C7F19 #197F7F
square
#4C197F #7F1919 #4C7F19 #197F7F
split-complementary
#4C197F #7F7F19 #197F19
monochromatic
#0F051A #2D0F4C #4C197F #6B23B2 #893AD8

Accessibility & contrast

On white

11.98
#4C197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4C197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C197F
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C197F#FFFFFF#000000##FFFFFF
##4C197F1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#40344C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c197f;
/* rgb */ color: rgb(76, 25, 127);
/* oklch */ color: oklch(35.5% 0.158 301.1);
Tailwind
colors: {
  custom: {
    50: '#845ca5',
    500: '#4c197f',
    950: '#000000',
  },
}
SCSS
$custom: #4c197f;
$custom-light: #845ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c197f",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 270,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35494,
    "c": 0.15834,
    "h": 301.1
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#4C197F
secondary
#7AB341
accent
#EA3E94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C197F

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

Preview Lab → · Contrast checker → · Palette generator →

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