#4F198F#4F198F

#4F198F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.176 H 297.6°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4F198F
RGBrgb(79, 25, 143)
HSLhsl(267, 70%, 33%)
HSVhsv(267, 83%, 56%)
CMYKcmyk(44.8%, 82.5%, 0%, 43.9%)
CIE-LABlab(24.77, 48.13, -54.38)
CIE-LCHlch(24.77, 72.62, 311.51°)
OKLaboklab(37.35% 0.0815 -0.1558)
OKLCHoklch(37.35% 0.176 297.6)
XYZxyz(8.5287, 4.3405, 26.3697)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F198F #598F19
analogous
#191E8F #4F198F #8A198F
triadic
#4F198F #8F4F19 #198F4F
tetradic
#4F198F #8F191E #598F19 #198F8A
square
#4F198F #8F191E #598F19 #198F8A
split-complementary
#4F198F #8F8A19 #1E8F19
monochromatic
#150727 #32105B #4F198F #6C22C3 #8B44DE

Accessibility & contrast

On white

11.24
#4F198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F198F
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F198F#FFFFFF#000000##FFFFFF
##4F198F1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#3E3B55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f198f;
/* rgb */ color: rgb(79, 25, 143);
/* oklch */ color: oklch(37.4% 0.176 297.6);
Tailwind
colors: {
  custom: {
    50: '#875eb1',
    500: '#4f198f',
    950: '#000000',
  },
}
SCSS
$custom: #4f198f;
$custom-light: #875eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f198f",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 267.458,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37354,
    "c": 0.1758,
    "h": 297.6
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#4F198F
secondary
#87BF44
accent
#ED3B9B
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F198F

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

Preview Lab → · Contrast checker → · Palette generator →

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