#4F1576#4F1576

#4F1576 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.154 H 306.9°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4F1576
RGBrgb(79, 21, 118)
HSLhsl(276, 70%, 27%)
HSVhsv(276, 82%, 46%)
CMYKcmyk(33.1%, 82.2%, 0%, 53.7%)
CIE-LABlab(21.97, 43.52, -43.19)
CIE-LCHlch(21.97, 61.31, 315.22°)
OKLaboklab(34.71% 0.0924 -0.1229)
OKLCHoklch(34.71% 0.154 306.9)
XYZxyz(6.7619, 3.5067, 17.4567)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1576 #3C7615
analogous
#1E1576 #4F1576 #76156D
triadic
#4F1576 #764F15 #15764F
tetradic
#4F1576 #761E15 #3C7615 #156D76
square
#4F1576 #761E15 #3C7615 #156D76
split-complementary
#4F1576 #6D7615 #15761E
monochromatic
#11051A #2C0C42 #4F1576 #721EAA #942CD9

Accessibility & contrast

On white

12.34
#4F1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4F1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1576
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1576#FFFFFF#000000##FFFFFF
##4F15761.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#482E46
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1576;
/* rgb */ color: rgb(79, 21, 118);
/* oklch */ color: oklch(34.7% 0.154 306.9);
Tailwind
colors: {
  custom: {
    50: '#855a9e',
    500: '#4f1576',
    950: '#000000',
  },
}
SCSS
$custom: #4f1576;
$custom-light: #855a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1576",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 275.876,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34709,
    "c": 0.15374,
    "h": 306.9
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#4F1576
secondary
#68AC3B
accent
#ED3B83
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1576

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

Preview Lab → · Contrast checker → · Palette generator →

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