#4C198E#4C198E

#4C198E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.174 H 296.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4C198E
RGBrgb(76, 25, 142)
HSLhsl(266, 70%, 33%)
HSVhsv(266, 82%, 56%)
CMYKcmyk(46.5%, 82.4%, 0%, 44.3%)
CIE-LABlab(24.27, 47.43, -54.58)
CIE-LCHlch(24.27, 72.31, 310.99°)
OKLaboklab(36.9% 0.0771 -0.1565)
OKLCHoklch(36.9% 0.174 296.2)
XYZxyz(8.2093, 4.1846, 25.9611)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C198E #5B8E19
analogous
#19208E #4C198E #86198E
triadic
#4C198E #8E4C19 #198E4C
tetradic
#4C198E #8E1920 #5B8E19 #198E86
square
#4C198E #8E1920 #5B8E19 #198E86
split-complementary
#4C198E #8E8619 #208E19
monochromatic
#140726 #30105A #4C198E #6822C2 #8743DE

Accessibility & contrast

On white

11.43
#4C198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C198E
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C198E#FFFFFF#000000##FFFFFF
##4C198E1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#3A3B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c198e;
/* rgb */ color: rgb(76, 25, 142);
/* oklch */ color: oklch(36.9% 0.174 296.2);
Tailwind
colors: {
  custom: {
    50: '#855db0',
    500: '#4c198e',
    950: '#000000',
  },
}
SCSS
$custom: #4c198e;
$custom-light: #855db0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c198e",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 266.154,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36895,
    "c": 0.17443,
    "h": 296.2
  },
  "luminance": 0.04185
}

Semantic roles & 50–950 ramp

primary
#4C198E
secondary
#89BF44
accent
#ED3B9F
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C198E

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

Preview Lab → · Contrast checker → · Palette generator →

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