#4F198A#4F198A

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

Color values

HEX#4F198A
RGBrgb(79, 25, 138)
HSLhsl(269, 69%, 32%)
HSVhsv(269, 82%, 54%)
CMYKcmyk(42.8%, 81.9%, 0%, 45.9%)
CIE-LABlab(24.30, 46.86, -52.03)
CIE-LCHlch(24.30, 70.03, 312.01°)
OKLaboklab(36.89% 0.0832 -0.1489)
OKLCHoklch(36.89% 0.171 299.2)
XYZxyz(8.1584, 4.1924, 24.4192)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F198A #548A19
analogous
#191B8A #4F198A #88198A
triadic
#4F198A #8A4F19 #198A4F
tetradic
#4F198A #8A191B #548A19 #198A88
square
#4F198A #8A191B #548A19 #198A88
split-complementary
#4F198A #8A8819 #1B8A19
monochromatic
#140622 #311056 #4F198A #6D22BE #8B41DD

Accessibility & contrast

On white

11.42
#4F198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F198A
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F198A#FFFFFF#000000##FFFFFF
##4F198A1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#403952
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f198a;
/* rgb */ color: rgb(79, 25, 138);
/* oklch */ color: oklch(36.9% 0.171 299.2);
Tailwind
colors: {
  custom: {
    50: '#875dad',
    500: '#4f198a',
    950: '#000000',
  },
}
SCSS
$custom: #4f198a;
$custom-light: #875dad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f198a",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 268.673,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36885,
    "c": 0.17053,
    "h": 299.2
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#4F198A
secondary
#82BD42
accent
#EC3C98
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F198A

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

Preview Lab → · Contrast checker → · Palette generator →

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