#4F1171#4F1171

#4F1171 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.153 H 309.5°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4F1171
RGBrgb(79, 17, 113)
HSLhsl(279, 74%, 25%)
HSVhsv(279, 85%, 44%)
CMYKcmyk(30.1%, 85%, 0%, 55.7%)
CIE-LABlab(21.04, 43.81, -41.48)
CIE-LCHlch(21.04, 60.34, 316.57°)
OKLaboklab(33.93% 0.0971 -0.1178)
OKLCHoklch(33.93% 0.153 309.5)
XYZxyz(6.4049, 3.2555, 15.9106)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1171 #337111
analogous
#1F1171 #4F1171 #711163
triadic
#4F1171 #714F11 #11714F
tetradic
#4F1171 #711F11 #337111 #116371
square
#4F1171 #711F11 #337111 #116371
split-complementary
#4F1171 #637111 #11711F
monochromatic
#13041B #2A093C #4F1171 #7419A6 #9921DB

Accessibility & contrast

On white

12.72
#4F1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4F1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1171
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1171#FFFFFF#000000##FFFFFF
##4F11711.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#4A2A42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1171;
/* rgb */ color: rgb(79, 17, 113);
/* oklch */ color: oklch(33.9% 0.153 309.5);
Tailwind
colors: {
  custom: {
    50: '#85589b',
    500: '#4f1171',
    950: '#000000',
  },
}
SCSS
$custom: #4f1171;
$custom-light: #85589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1171",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 278.75,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33927,
    "c": 0.15267,
    "h": 309.5
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#4F1171
secondary
#5EA836
accent
#F13779
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1171

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

Preview Lab → · Contrast checker → · Palette generator →

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