#4F157A#4F157A

#4F157A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.158 H 305.3°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#4F157A
RGBrgb(79, 21, 122)
HSLhsl(274, 71%, 28%)
HSVhsv(274, 83%, 48%)
CMYKcmyk(35.2%, 82.8%, 0%, 52.2%)
CIE-LABlab(22.32, 44.48, -45.18)
CIE-LCHlch(22.32, 63.40, 314.55°)
OKLaboklab(35.06% 0.0913 -0.1287)
OKLCHoklch(35.06% 0.158 305.3)
XYZxyz(7.0047, 3.6038, 18.7352)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F157A #407A15
analogous
#1C157A #4F157A #7A1572
triadic
#4F157A #7A4F15 #157A4F
tetradic
#4F157A #7A1C15 #407A15 #15727A
square
#4F157A #7A1C15 #407A15 #15727A
split-complementary
#4F157A #727A15 #157A1C
monochromatic
#11041A #2D0C46 #4F157A #711EAE #922EDB

Accessibility & contrast

On white

12.20
#4F157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4F157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F157A
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F157A#FFFFFF#000000##FFFFFF
##4F157A1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.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: #4f157a;
/* rgb */ color: rgb(79, 21, 122);
/* oklch */ color: oklch(35.1% 0.158 305.3);
Tailwind
colors: {
  custom: {
    50: '#855ba1',
    500: '#4f157a',
    950: '#000000',
  },
}
SCSS
$custom: #4f157a;
$custom-light: #855ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f157a",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 274.455,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35059,
    "c": 0.15781,
    "h": 305.3
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#4F157A
secondary
#6DAF3B
accent
#ED3A87
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F157A

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

Preview Lab → · Contrast checker → · Palette generator →

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