#4C197B#4C197B

#4C197B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.154 H 302.6°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4C197B
RGBrgb(76, 25, 123)
HSLhsl(271, 66%, 29%)
HSVhsv(271, 80%, 48%)
CMYKcmyk(38.2%, 79.7%, 0%, 51.8%)
CIE-LABlab(22.52, 42.57, -45.50)
CIE-LCHlch(22.52, 62.31, 313.09°)
OKLaboklab(35.14% 0.0829 -0.1298)
OKLCHoklch(35.14% 0.154 302.6)
XYZxyz(6.9024, 3.6618, 19.0782)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C197B #487B19
analogous
#1B197B #4C197B #7B1979
triadic
#4C197B #7B4C19 #197B4C
tetradic
#4C197B #7B1B19 #487B19 #19797B
square
#4C197B #7B1B19 #487B19 #19797B
split-complementary
#4C197B #797B19 #197B1B
monochromatic
#100519 #2D0F48 #4C197B #6B23AE #8A38D7

Accessibility & contrast

On white

12.12
#4C197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C197B
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C197B#FFFFFF#000000##FFFFFF
##4C197B1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#423349
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c197b;
/* rgb */ color: rgb(76, 25, 123);
/* oklch */ color: oklch(35.1% 0.154 302.6);
Tailwind
colors: {
  custom: {
    50: '#835ca2',
    500: '#4c197b',
    950: '#000000',
  },
}
SCSS
$custom: #4c197b;
$custom-light: #835ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c197b",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 271.224,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35136,
    "c": 0.15404,
    "h": 302.6
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#4C197B
secondary
#76AF40
accent
#E93F90
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C197B

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

Preview Lab → · Contrast checker → · Palette generator →

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