#4F1C71#4F1C71

#4F1C71 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.140 H 308.1°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#4F1C71
RGBrgb(79, 28, 113)
HSLhsl(276, 60%, 28%)
HSVhsv(276, 75%, 44%)
CMYKcmyk(30.1%, 75.2%, 0%, 55.7%)
CIE-LABlab(22.60, 39.33, -38.95)
CIE-LCHlch(22.60, 55.35, 315.28°)
OKLaboklab(35.03% 0.0866 -0.1105)
OKLCHoklch(35.03% 0.14 308.1)
XYZxyz(6.6197, 3.6851, 15.9822)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1C71 #3E711C
analogous
#241C71 #4F1C71 #711C68
triadic
#4F1C71 #714F1C #1C714F
tetradic
#4F1C71 #71241C #3E711C #1C6871
square
#4F1C71 #71241C #3E711C #1C6871
split-complementary
#4F1C71 #68711C #1C7124
monochromatic
#110619 #2D1040 #4F1C71 #7128A2 #9339CE

Accessibility & contrast

On white

12.09
#4F1C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1C71
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1C71#FFFFFF#000000##FFFFFF
##4F1C711.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#04366F
Tritanopia (blue-blind)
#4A3044
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f1c71;
/* rgb */ color: rgb(79, 28, 113);
/* oklch */ color: oklch(35.0% 0.140 308.1);
Tailwind
colors: {
  custom: {
    50: '#845d9a',
    500: '#4f1c71',
    950: '#000000',
  },
}
SCSS
$custom: #4f1c71;
$custom-light: #845d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1c71",
  "rgb": {
    "r": 79,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 276,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35027,
    "c": 0.14038,
    "h": 308.1
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#4F1C71
secondary
#6BA643
accent
#E34484
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1C71

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

Preview Lab → · Contrast checker → · Palette generator →

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