#4F147E#4F147E

#4F147E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.163 H 303.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#4F147E
RGBrgb(79, 20, 126)
HSLhsl(273, 73%, 29%)
HSVhsv(273, 84%, 49%)
CMYKcmyk(37.3%, 84.1%, 0%, 50.6%)
CIE-LABlab(22.55, 45.80, -47.35)
CIE-LCHlch(22.55, 65.88, 314.05°)
OKLaboklab(35.33% 0.0909 -0.1351)
OKLCHoklch(35.33% 0.163 303.9)
XYZxyz(7.2396, 3.6689, 20.0614)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F147E #437E14
analogous
#1A147E #4F147E #7E1478
triadic
#4F147E #7E4F14 #147E4F
tetradic
#4F147E #7E1A14 #437E14 #14787E
square
#4F147E #7E1A14 #437E14 #14787E
split-complementary
#4F147E #787E14 #147E1A
monochromatic
#11041A #2E0C49 #4F147E #701CB3 #902EDE

Accessibility & contrast

On white

12.11
#4F147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F147E
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F147E#FFFFFF#000000##FFFFFF
##4F147E1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#45314A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f147e;
/* rgb */ color: rgb(79, 20, 126);
/* oklch */ color: oklch(35.3% 0.163 303.9);
Tailwind
colors: {
  custom: {
    50: '#865aa4',
    500: '#4f147e',
    950: '#000000',
  },
}
SCSS
$custom: #4f147e;
$custom-light: #865aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f147e",
  "rgb": {
    "r": 79,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 273.396,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3533,
    "c": 0.1628,
    "h": 303.9
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#4F147E
secondary
#70B33A
accent
#EF388A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F147E

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

Preview Lab → · Contrast checker → · Palette generator →

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