#4F1B79#4F1B79

#4F1B79 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.150 H 304.9°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#4F1B79
RGBrgb(79, 27, 121)
HSLhsl(273, 64%, 29%)
HSVhsv(273, 78%, 47%)
CMYKcmyk(34.7%, 77.7%, 0%, 52.5%)
CIE-LABlab(23.09, 41.76, -43.28)
CIE-LCHlch(23.09, 60.14, 313.97°)
OKLaboklab(35.58% 0.0861 -0.1232)
OKLCHoklch(35.58% 0.15 304.9)
XYZxyz(7.0668, 3.8266, 18.4518)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B79 #45791B
analogous
#201B79 #4F1B79 #791B74
triadic
#4F1B79 #794F1B #1B794F
tetradic
#4F1B79 #79201B #45791B #1B7479
square
#4F1B79 #79201B #45791B #1B7479
split-complementary
#4F1B79 #74791B #1B7920
monochromatic
#100619 #2E1047 #4F1B79 #7026AB #8F3BD3

Accessibility & contrast

On white

11.90
#4F1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4F1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1B79
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B79#FFFFFF#000000##FFFFFF
##4F1B791.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1b79;
/* rgb */ color: rgb(79, 27, 121);
/* oklch */ color: oklch(35.6% 0.150 304.9);
Tailwind
colors: {
  custom: {
    50: '#855da0',
    500: '#4f1b79',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b79;
$custom-light: #855da0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b79",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 273.191,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35576,
    "c": 0.15029,
    "h": 304.9
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#4F1B79
secondary
#72AD43
accent
#E7418B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4F1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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