#4F147A#4F147A

#4F147A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.159 H 305.5°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4F147A
RGBrgb(79, 20, 122)
HSLhsl(275, 72%, 28%)
HSVhsv(275, 84%, 48%)
CMYKcmyk(35.2%, 83.6%, 0%, 52.2%)
CIE-LABlab(22.19, 44.85, -45.39)
CIE-LCHlch(22.19, 63.81, 314.66°)
OKLaboklab(34.97% 0.0921 -0.1293)
OKLCHoklch(34.97% 0.159 305.5)
XYZxyz(6.9867, 3.5678, 18.7292)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F147A #3F7A14
analogous
#1C147A #4F147A #7A1472
triadic
#4F147A #7A4F14 #147A4F
tetradic
#4F147A #7A1C14 #3F7A14 #14727A
square
#4F147A #7A1C14 #3F7A14 #14727A
split-complementary
#4F147A #727A14 #147A1C
monochromatic
#11041A #2D0B45 #4F147A #711DAF #922CDC

Accessibility & contrast

On white

12.25
#4F147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4F147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F147A
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F147A#FFFFFF#000000##FFFFFF
##4F147A1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#473048
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f147a;
/* rgb */ color: rgb(79, 20, 122);
/* oklch */ color: oklch(35.0% 0.159 305.5);
Tailwind
colors: {
  custom: {
    50: '#855aa1',
    500: '#4f147a',
    950: '#000000',
  },
}
SCSS
$custom: #4f147a;
$custom-light: #855aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f147a",
  "rgb": {
    "r": 79,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 274.706,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3497,
    "c": 0.15877,
    "h": 305.5
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#4F147A
secondary
#6CB03A
accent
#EF3986
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F147A

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

Preview Lab → · Contrast checker → · Palette generator →

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