#4F1581#4F1581

#4F1581 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.165 H 302.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#4F1581
RGBrgb(79, 21, 129)
HSLhsl(272, 72%, 29%)
HSVhsv(272, 84%, 51%)
CMYKcmyk(38.8%, 83.7%, 0%, 49.4%)
CIE-LABlab(22.94, 46.16, -48.60)
CIE-LCHlch(22.94, 67.03, 313.53°)
OKLaboklab(35.69% 0.0891 -0.1388)
OKLCHoklch(35.69% 0.165 302.7)
XYZxyz(7.4541, 3.7836, 21.1022)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1581 #478115
analogous
#191581 #4F1581 #81157D
triadic
#4F1581 #814F15 #15814F
tetradic
#4F1581 #811915 #478115 #157D81
square
#4F1581 #811915 #478115 #157D81
split-complementary
#4F1581 #7D8115 #158119
monochromatic
#10041A #2F0C4C #4F1581 #6F1EB6 #8F33DE

Accessibility & contrast

On white

11.95
#4F1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4F1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1581
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1581#FFFFFF#000000##FFFFFF
##4F15811.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#44334C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f1581;
/* rgb */ color: rgb(79, 21, 129);
/* oklch */ color: oklch(35.7% 0.165 302.7);
Tailwind
colors: {
  custom: {
    50: '#865ba6',
    500: '#4f1581',
    950: '#000000',
  },
}
SCSS
$custom: #4f1581;
$custom-light: #865ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1581",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 272.222,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35689,
    "c": 0.16493,
    "h": 302.7
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#4F1581
secondary
#74B63C
accent
#EF398D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1581

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

Preview Lab → · Contrast checker → · Palette generator →

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