#4F198D#4F198D

#4F198D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.174 H 298.2°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#4F198D
RGBrgb(79, 25, 141)
HSLhsl(268, 70%, 33%)
HSVhsv(268, 82%, 55%)
CMYKcmyk(44%, 82.3%, 0%, 44.7%)
CIE-LABlab(24.58, 47.62, -53.44)
CIE-LCHlch(24.58, 71.58, 311.70°)
OKLaboklab(37.17% 0.0822 -0.153)
OKLCHoklch(37.17% 0.174 298.2)
XYZxyz(8.3786, 4.2805, 25.5789)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F198D #578D19
analogous
#191D8D #4F198D #89198D
triadic
#4F198D #8D4F19 #198D4F
tetradic
#4F198D #8D191D #578D19 #198D89
square
#4F198D #8D191D #578D19 #198D89
split-complementary
#4F198D #8D8919 #1D8D19
monochromatic
#150725 #321059 #4F198D #6C22C1 #8B43DE

Accessibility & contrast

On white

11.31
#4F198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F198D
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F198D#FFFFFF#000000##FFFFFF
##4F198D1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#3F3A54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f198d;
/* rgb */ color: rgb(79, 25, 141);
/* oklch */ color: oklch(37.2% 0.174 298.2);
Tailwind
colors: {
  custom: {
    50: '#875daf',
    500: '#4f198d',
    950: '#000000',
  },
}
SCSS
$custom: #4f198d;
$custom-light: #875daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f198d",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 267.931,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37165,
    "c": 0.1737,
    "h": 298.2
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#4F198D
secondary
#85BF43
accent
#ED3B9A
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F198D

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

Preview Lab → · Contrast checker → · Palette generator →

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