#4F1A79#4F1A79

#4F1A79 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.151 H 305.1°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#4F1A79
RGBrgb(79, 26, 121)
HSLhsl(273, 65%, 29%)
HSVhsv(273, 79%, 47%)
CMYKcmyk(34.7%, 78.5%, 0%, 52.5%)
CIE-LABlab(22.94, 42.20, -43.53)
CIE-LCHlch(22.94, 60.63, 314.11°)
OKLaboklab(35.47% 0.0871 -0.1239)
OKLCHoklch(35.47% 0.151 305.1)
XYZxyz(7.0443, 3.7816, 18.4443)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A79 #44791A
analogous
#201A79 #4F1A79 #791A74
triadic
#4F1A79 #794F1A #1A794F
tetradic
#4F1A79 #79201A #44791A #1A7479
square
#4F1A79 #79201A #44791A #1A7479
split-complementary
#4F1A79 #74791A #1A7920
monochromatic
#100519 #2E0F47 #4F1A79 #7025AB #9039D4

Accessibility & contrast

On white

11.96
#4F1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1A79
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A79#FFFFFF#000000##FFFFFF
##4F1A791.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#473248
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f1a79;
/* rgb */ color: rgb(79, 26, 121);
/* oklch */ color: oklch(35.5% 0.151 305.1);
Tailwind
colors: {
  custom: {
    50: '#855da0',
    500: '#4f1a79',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a79;
$custom-light: #855da0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a79",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 273.474,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35467,
    "c": 0.15145,
    "h": 305.1
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#4F1A79
secondary
#71AD41
accent
#E8408A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4F1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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