#4F1A72#4F1A72

#4F1A72 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.144 H 308.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4F1A72
RGBrgb(79, 26, 114)
HSLhsl(276, 63%, 27%)
HSVhsv(276, 77%, 45%)
CMYKcmyk(30.7%, 77.2%, 0%, 55.3%)
CIE-LABlab(22.36, 40.49, -39.98)
CIE-LCHlch(22.36, 56.90, 315.36°)
OKLaboklab(34.88% 0.0886 -0.1135)
OKLCHoklch(34.88% 0.144 308)
XYZxyz(6.6305, 3.6161, 16.2650)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A72 #3D721A
analogous
#231A72 #4F1A72 #721A69
triadic
#4F1A72 #724F1A #1A724F
tetradic
#4F1A72 #72231A #3D721A #1A6972
square
#4F1A72 #72231A #3D721A #1A6972
split-complementary
#4F1A72 #69721A #1A7223
monochromatic
#110619 #2C0F40 #4F1A72 #7225A4 #9335D1

Accessibility & contrast

On white

12.19
#4F1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1A72
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A72#FFFFFF#000000##FFFFFF
##4F1A721.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#492F44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1a72;
/* rgb */ color: rgb(79, 26, 114);
/* oklch */ color: oklch(34.9% 0.144 308.0);
Tailwind
colors: {
  custom: {
    50: '#845c9b',
    500: '#4f1a72',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a72;
$custom-light: #845c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a72",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 276.136,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3488,
    "c": 0.14397,
    "h": 308
  },
  "luminance": 0.03616
}

Semantic roles & 50–950 ramp

primary
#4F1A72
secondary
#69A741
accent
#E64283
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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