#4C198B#4C198B

#4C198B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.171 H 297.1°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4C198B
RGBrgb(76, 25, 139)
HSLhsl(267, 70%, 32%)
HSVhsv(267, 82%, 55%)
CMYKcmyk(45.3%, 82%, 0%, 45.5%)
CIE-LABlab(23.99, 46.65, -53.19)
CIE-LCHlch(23.99, 70.75, 311.26°)
OKLaboklab(36.61% 0.0781 -0.1524)
OKLCHoklch(36.61% 0.171 297.1)
XYZxyz(7.9871, 4.0957, 24.7908)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C198B #588B19
analogous
#191F8B #4C198B #85198B
triadic
#4C198B #8B4C19 #198B4C
tetradic
#4C198B #8B191F #588B19 #198B85
square
#4C198B #8B191F #588B19 #198B85
split-complementary
#4C198B #8B8519 #1F8B19
monochromatic
#130623 #301057 #4C198B #6822BF #8741DD

Accessibility & contrast

On white

11.54
#4C198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4C198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C198B
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C198B#FFFFFF#000000##FFFFFF
##4C198B1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#3B3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c198b;
/* rgb */ color: rgb(76, 25, 139);
/* oklch */ color: oklch(36.6% 0.171 297.1);
Tailwind
colors: {
  custom: {
    50: '#855dae',
    500: '#4c198b',
    950: '#000000',
  },
}
SCSS
$custom: #4c198b;
$custom-light: #855dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c198b",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 266.842,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36608,
    "c": 0.17122,
    "h": 297.1
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#4C198B
secondary
#86BE42
accent
#EC3B9D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C198B

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

Preview Lab → · Contrast checker → · Palette generator →

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