#4F1571#4F1571

#4F1571 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.149 H 309.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#4F1571
RGBrgb(79, 21, 113)
HSLhsl(278, 69%, 26%)
HSVhsv(278, 81%, 44%)
CMYKcmyk(30.1%, 81.4%, 0%, 55.7%)
CIE-LABlab(21.55, 42.34, -40.66)
CIE-LCHlch(21.55, 58.70, 316.16°)
OKLaboklab(34.28% 0.0937 -0.1154)
OKLCHoklch(34.28% 0.149 309.1)
XYZxyz(6.4726, 3.3910, 15.9331)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1571 #377115
analogous
#211571 #4F1571 #711565
triadic
#4F1571 #714F15 #15714F
tetradic
#4F1571 #712115 #377115 #156571
square
#4F1571 #712115 #377115 #156571
split-complementary
#4F1571 #657115 #157121
monochromatic
#12051A #2B0B3D #4F1571 #731FA5 #9729D7

Accessibility & contrast

On white

12.51
#4F1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4F1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1571
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1571#FFFFFF#000000##FFFFFF
##4F15711.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1571;
/* rgb */ color: rgb(79, 21, 113);
/* oklch */ color: oklch(34.3% 0.149 309.1);
Tailwind
colors: {
  custom: {
    50: '#845a9a',
    500: '#4f1571',
    950: '#000000',
  },
}
SCSS
$custom: #4f1571;
$custom-light: #845a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1571",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 277.826,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34281,
    "c": 0.14866,
    "h": 309.1
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#4F1571
secondary
#63A73B
accent
#EB3C7D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1571

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

Preview Lab → · Contrast checker → · Palette generator →

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