#4F1579#4F1579

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

Color values

HEX#4F1579
RGBrgb(79, 21, 121)
HSLhsl(275, 70%, 28%)
HSVhsv(275, 83%, 47%)
CMYKcmyk(34.7%, 82.6%, 0%, 52.5%)
CIE-LABlab(22.23, 44.24, -44.68)
CIE-LCHlch(22.23, 62.88, 314.71°)
OKLaboklab(34.97% 0.0916 -0.1273)
OKLCHoklch(34.97% 0.157 305.7)
XYZxyz(6.9430, 3.5791, 18.4105)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1579 #3F7915
analogous
#1D1579 #4F1579 #791571
triadic
#4F1579 #794F15 #15794F
tetradic
#4F1579 #791D15 #3F7915 #157179
square
#4F1579 #791D15 #3F7915 #157179
split-complementary
#4F1579 #717915 #15791D
monochromatic
#11051A #2D0C45 #4F1579 #711EAD #922EDB

Accessibility & contrast

On white

12.24
#4F1579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1579
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1579#FFFFFF#000000##FFFFFF
##4F15791.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#473047
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1579;
/* rgb */ color: rgb(79, 21, 121);
/* oklch */ color: oklch(35.0% 0.157 305.7);
Tailwind
colors: {
  custom: {
    50: '#855aa0',
    500: '#4f1579',
    950: '#000000',
  },
}
SCSS
$custom: #4f1579;
$custom-light: #855aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1579",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 274.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34971,
    "c": 0.15678,
    "h": 305.7
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#4F1579
secondary
#6CAF3B
accent
#ED3B86
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1579

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

Preview Lab → · Contrast checker → · Palette generator →

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