#4F147F#4F147F

#4F147F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.164 H 303.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4F147F
RGBrgb(79, 20, 127)
HSLhsl(273, 73%, 29%)
HSVhsv(273, 84%, 50%)
CMYKcmyk(37.8%, 84.3%, 0%, 50.2%)
CIE-LABlab(22.64, 46.04, -47.83)
CIE-LCHlch(22.64, 66.39, 313.91°)
OKLaboklab(35.42% 0.0905 -0.1365)
OKLCHoklch(35.42% 0.164 303.6)
XYZxyz(7.3045, 3.6949, 20.4029)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F147F #447F14
analogous
#1A147F #4F147F #7F147A
triadic
#4F147F #7F4F14 #147F4F
tetradic
#4F147F #7F1A14 #447F14 #147A7F
square
#4F147F #7F1A14 #447F14 #147A7F
split-complementary
#4F147F #7A7F14 #147F1A
monochromatic
#10041A #2E0C4A #4F147F #701CB4 #902FDE

Accessibility & contrast

On white

12.08
#4F147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4F147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F147F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F147F#FFFFFF#000000##FFFFFF
##4F147F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#45324B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f147f;
/* rgb */ color: rgb(79, 20, 127);
/* oklch */ color: oklch(35.4% 0.164 303.6);
Tailwind
colors: {
  custom: {
    50: '#865aa5',
    500: '#4f147f',
    950: '#000000',
  },
}
SCSS
$custom: #4f147f;
$custom-light: #865aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f147f",
  "rgb": {
    "r": 79,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 273.084,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3542,
    "c": 0.16381,
    "h": 303.6
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#4F147F
secondary
#71B43B
accent
#EF388A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F147F

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

Preview Lab → · Contrast checker → · Palette generator →

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