#4F197A#4F197A

#4F197A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.154 H 304.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4F197A
RGBrgb(79, 25, 122)
HSLhsl(273, 66%, 29%)
HSVhsv(273, 80%, 48%)
CMYKcmyk(35.2%, 79.5%, 0%, 52.2%)
CIE-LABlab(22.87, 42.87, -44.27)
CIE-LCHlch(22.87, 61.63, 314.08°)
OKLaboklab(35.45% 0.0878 -0.1261)
OKLCHoklch(35.45% 0.154 304.8)
XYZxyz(7.0841, 3.7627, 18.7616)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F197A #447A19
analogous
#1F197A #4F197A #7A1975
triadic
#4F197A #7A4F19 #197A4F
tetradic
#4F197A #7A1F19 #447A19 #19757A
square
#4F197A #7A1F19 #447A19 #19757A
split-complementary
#4F197A #757A19 #197A1F
monochromatic
#100519 #2E0F47 #4F197A #7023AD #9037D6

Accessibility & contrast

On white

11.98
#4F197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4F197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F197A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F197A#FFFFFF#000000##FFFFFF
##4F197A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#473249
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f197a;
/* rgb */ color: rgb(79, 25, 122);
/* oklch */ color: oklch(35.4% 0.154 304.8);
Tailwind
colors: {
  custom: {
    50: '#855ca1',
    500: '#4f197a',
    950: '#000000',
  },
}
SCSS
$custom: #4f197a;
$custom-light: #855ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f197a",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 273.402,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35448,
    "c": 0.15363,
    "h": 304.8
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#4F197A
secondary
#71AF40
accent
#E93F8A
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4F197A

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

Preview Lab → · Contrast checker → · Palette generator →

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