#4F198B#4F198B

#4F198B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.172 H 298.9°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#4F198B
RGBrgb(79, 25, 139)
HSLhsl(268, 70%, 32%)
HSVhsv(268, 82%, 55%)
CMYKcmyk(43.2%, 82%, 0%, 45.5%)
CIE-LABlab(24.39, 47.12, -52.51)
CIE-LCHlch(24.39, 70.55, 311.90°)
OKLaboklab(36.98% 0.0828 -0.1503)
OKLCHoklch(36.98% 0.172 298.9)
XYZxyz(8.2311, 4.2215, 24.8023)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F198B #558B19
analogous
#191C8B #4F198B #88198B
triadic
#4F198B #8B4F19 #198B4F
tetradic
#4F198B #8B191C #558B19 #198B88
square
#4F198B #8B191C #558B19 #198B88
split-complementary
#4F198B #8B8819 #1C8B19
monochromatic
#140623 #321057 #4F198B #6C22BF #8B41DD

Accessibility & contrast

On white

11.39
#4F198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F198B
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F198B#FFFFFF#000000##FFFFFF
##4F198B1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#403953
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f198b;
/* rgb */ color: rgb(79, 25, 139);
/* oklch */ color: oklch(37.0% 0.172 298.9);
Tailwind
colors: {
  custom: {
    50: '#875dae',
    500: '#4f198b',
    950: '#000000',
  },
}
SCSS
$custom: #4f198b;
$custom-light: #875dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f198b",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 268.421,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36978,
    "c": 0.17159,
    "h": 298.9
  },
  "luminance": 0.04222
}

Semantic roles & 50–950 ramp

primary
#4F198B
secondary
#83BE42
accent
#EC3B99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F198B

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

Preview Lab → · Contrast checker → · Palette generator →

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