#4F147D#4F147D

#4F147D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.162 H 304.3°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4F147D
RGBrgb(79, 20, 125)
HSLhsl(274, 72%, 28%)
HSVhsv(274, 84%, 49%)
CMYKcmyk(36.8%, 84%, 0%, 51%)
CIE-LABlab(22.46, 45.56, -46.86)
CIE-LCHlch(22.46, 65.36, 314.20°)
OKLaboklab(35.24% 0.0912 -0.1337)
OKLCHoklch(35.24% 0.162 304.3)
XYZxyz(7.1754, 3.6433, 19.7233)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F147D #427D14
analogous
#1A147D #4F147D #7D1476
triadic
#4F147D #7D4F14 #147D4F
tetradic
#4F147D #7D1A14 #427D14 #14767D
square
#4F147D #7D1A14 #427D14 #14767D
split-complementary
#4F147D #767D14 #147D1A
monochromatic
#11041A #2E0C48 #4F147D #701CB2 #912EDE

Accessibility & contrast

On white

12.15
#4F147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F147D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F147D#FFFFFF#000000##FFFFFF
##4F147D1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#463149
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f147d;
/* rgb */ color: rgb(79, 20, 125);
/* oklch */ color: oklch(35.2% 0.162 304.3);
Tailwind
colors: {
  custom: {
    50: '#865aa3',
    500: '#4f147d',
    950: '#000000',
  },
}
SCSS
$custom: #4f147d;
$custom-light: #865aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f147d",
  "rgb": {
    "r": 79,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 273.714,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35239,
    "c": 0.1618,
    "h": 304.3
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#4F147D
secondary
#6FB23A
accent
#EF3989
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F147D

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

Preview Lab → · Contrast checker → · Palette generator →

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