#4F1671#4F1671

#4F1671 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.148 H 308.9°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#4F1671
RGBrgb(79, 22, 113)
HSLhsl(278, 67%, 26%)
HSVhsv(278, 81%, 44%)
CMYKcmyk(30.1%, 80.5%, 0%, 55.7%)
CIE-LABlab(21.68, 41.95, -40.43)
CIE-LCHlch(21.68, 58.26, 316.05°)
OKLaboklab(34.38% 0.0927 -0.1148)
OKLCHoklch(34.38% 0.148 308.9)
XYZxyz(6.4914, 3.4285, 15.9394)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1671 #387116
analogous
#221671 #4F1671 #711666
triadic
#4F1671 #714F16 #16714F
tetradic
#4F1671 #712216 #387116 #166671
square
#4F1671 #712216 #387116 #166671
split-complementary
#4F1671 #667116 #167122
monochromatic
#12051A #2B0C3E #4F1671 #7320A4 #962CD6

Accessibility & contrast

On white

12.46
#4F1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4F1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1671
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1671#FFFFFF#000000##FFFFFF
##4F16711.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#4A2D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f1671;
/* rgb */ color: rgb(79, 22, 113);
/* oklch */ color: oklch(34.4% 0.148 308.9);
Tailwind
colors: {
  custom: {
    50: '#845a9a',
    500: '#4f1671',
    950: '#000000',
  },
}
SCSS
$custom: #4f1671;
$custom-light: #845a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1671",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 277.582,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34378,
    "c": 0.14757,
    "h": 308.9
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#4F1671
secondary
#64A73C
accent
#EA3E7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1671

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

Preview Lab → · Contrast checker → · Palette generator →

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