#4F197F#4F197F

#4F197F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.159 H 303.0°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4F197F
RGBrgb(79, 25, 127)
HSLhsl(272, 67%, 30%)
HSVhsv(272, 80%, 50%)
CMYKcmyk(37.8%, 80.3%, 0%, 50.2%)
CIE-LABlab(23.30, 44.11, -46.74)
CIE-LCHlch(23.30, 64.27, 313.34°)
OKLaboklab(35.89% 0.0864 -0.1334)
OKLCHoklch(35.89% 0.159 303)
XYZxyz(7.4019, 3.8898, 20.4354)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F197F #497F19
analogous
#1C197F #4F197F #7F197C
triadic
#4F197F #7F4F19 #197F4F
tetradic
#4F197F #7F1C19 #497F19 #197C7F
square
#4F197F #7F1C19 #497F19 #197C7F
split-complementary
#4F197F #7C7F19 #197F1C
monochromatic
#10051A #2F0F4C #4F197F #6F23B2 #8E3AD8

Accessibility & contrast

On white

11.81
#4F197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4F197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F197F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F197F#FFFFFF#000000##FFFFFF
##4F197F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#45344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f197f;
/* rgb */ color: rgb(79, 25, 127);
/* oklch */ color: oklch(35.9% 0.159 303.0);
Tailwind
colors: {
  custom: {
    50: '#865da5',
    500: '#4f197f',
    950: '#000000',
  },
}
SCSS
$custom: #4f197f;
$custom-light: #865da5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f197f",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 271.765,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35886,
    "c": 0.15892,
    "h": 303
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#4F197F
secondary
#77B341
accent
#EA3E8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F197F

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

Preview Lab → · Contrast checker → · Palette generator →

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