#4F1A71#4F1A71

#4F1A71 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.143 H 308.4°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4F1A71
RGBrgb(79, 26, 113)
HSLhsl(277, 63%, 27%)
HSVhsv(277, 77%, 44%)
CMYKcmyk(30.1%, 77%, 0%, 55.7%)
CIE-LABlab(22.28, 40.25, -39.47)
CIE-LCHlch(22.28, 56.37, 315.56°)
OKLaboklab(34.8% 0.0888 -0.112)
OKLCHoklch(34.8% 0.143 308.4)
XYZxyz(6.5739, 3.5934, 15.9669)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A71 #3C711A
analogous
#241A71 #4F1A71 #711A68
triadic
#4F1A71 #714F1A #1A714F
tetradic
#4F1A71 #71241A #3C711A #1A6871
square
#4F1A71 #71241A #3C711A #1A6871
split-complementary
#4F1A71 #68711A #1A7124
monochromatic
#110619 #2C0F3F #4F1A71 #7225A3 #9435D0

Accessibility & contrast

On white

12.22
#4F1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4F1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1A71
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A71#FFFFFF#000000##FFFFFF
##4F1A711.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#4A2E44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1a71;
/* rgb */ color: rgb(79, 26, 113);
/* oklch */ color: oklch(34.8% 0.143 308.4);
Tailwind
colors: {
  custom: {
    50: '#845c9a',
    500: '#4f1a71',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a71;
$custom-light: #845c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a71",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 276.552,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34798,
    "c": 0.1429,
    "h": 308.4
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#4F1A71
secondary
#68A641
accent
#E64282
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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