#4F1371#4F1371

#4F1371 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.151 H 309.3°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#4F1371
RGBrgb(79, 19, 113)
HSLhsl(278, 71%, 26%)
HSVhsv(278, 83%, 44%)
CMYKcmyk(30.1%, 83.2%, 0%, 55.7%)
CIE-LABlab(21.28, 43.10, -41.08)
CIE-LCHlch(21.28, 59.55, 316.37°)
OKLaboklab(34.1% 0.0954 -0.1167)
OKLCHoklch(34.1% 0.151 309.3)
XYZxyz(6.4374, 3.3204, 15.9214)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1371 #357113
analogous
#201371 #4F1371 #711364
triadic
#4F1371 #714F13 #13714F
tetradic
#4F1371 #712013 #357113 #136471
square
#4F1371 #712013 #357113 #136471
split-complementary
#4F1371 #647113 #137120
monochromatic
#12041A #2A0A3D #4F1371 #741CA5 #9825DA

Accessibility & contrast

On white

12.62
#4F1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4F1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1371
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1371#FFFFFF#000000##FFFFFF
##4F13711.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#4A2B42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1371;
/* rgb */ color: rgb(79, 19, 113);
/* oklch */ color: oklch(34.1% 0.151 309.3);
Tailwind
colors: {
  custom: {
    50: '#85599a',
    500: '#4f1371',
    950: '#000000',
  },
}
SCSS
$custom: #4f1371;
$custom-light: #85599a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1371",
  "rgb": {
    "r": 79,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 278.298,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34098,
    "c": 0.15074,
    "h": 309.3
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#4F1371
secondary
#60A838
accent
#EE3A7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1371

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

Preview Lab → · Contrast checker → · Palette generator →

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